mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-20 15:21:21 -06:00
Rasterizer skeleton
This commit is contained in:
parent
d9ff63c022
commit
e1b9c13024
5 changed files with 184 additions and 49 deletions
|
@ -167,6 +167,7 @@ add_library(libslic3r STATIC
|
|||
${LIBDIR}/libslic3r/TriangleMesh.hpp
|
||||
# ${LIBDIR}/libslic3r/utils.cpp
|
||||
${LIBDIR}/libslic3r/Utils.hpp
|
||||
|
||||
)
|
||||
|
||||
add_library(libslic3r_gui STATIC
|
||||
|
@ -331,6 +332,19 @@ add_library(semver STATIC
|
|||
${LIBDIR}/semver/semver.c
|
||||
)
|
||||
|
||||
|
||||
find_package(PNG REQUIRED)
|
||||
|
||||
add_library(rasterizer STATIC
|
||||
${LIBDIR}/libslic3r/Rasterizer/Rasterizer.hpp
|
||||
${LIBDIR}/libslic3r/Rasterizer/Rasterizer.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(rasterizer ${PNG_LIBRARIES})
|
||||
target_include_directories(rasterizer PRIVATE ${PNG_INCLUDE_DIRS})
|
||||
target_compile_definitions(rasterizer PRIVATE ${PNG_DEFINITIONS})
|
||||
target_link_libraries(libslic3r rasterizer)
|
||||
|
||||
# Generate the Slic3r Perl module (XS) typemap file.
|
||||
set(MyTypemap ${CMAKE_CURRENT_BINARY_DIR}/typemap)
|
||||
add_custom_command(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue