2018-09-19 09:02:24 +00:00
|
|
|
project(libslic3r)
|
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
|
2018-10-29 15:01:26 +00:00
|
|
|
include(PrecompiledHeader)
|
|
|
|
|
2018-09-24 09:53:05 +00:00
|
|
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libslic3r_version.h.in ${CMAKE_CURRENT_BINARY_DIR}/libslic3r_version.h @ONLY)
|
|
|
|
|
2018-09-19 09:02:24 +00:00
|
|
|
add_library(libslic3r STATIC
|
2018-10-29 15:01:26 +00:00
|
|
|
pchheader.cpp
|
|
|
|
pchheader.hpp
|
2018-09-19 09:02:24 +00:00
|
|
|
BoundingBox.cpp
|
|
|
|
BoundingBox.hpp
|
|
|
|
BridgeDetector.cpp
|
|
|
|
BridgeDetector.hpp
|
|
|
|
ClipperUtils.cpp
|
|
|
|
ClipperUtils.hpp
|
|
|
|
Config.cpp
|
|
|
|
Config.hpp
|
|
|
|
EdgeGrid.cpp
|
|
|
|
EdgeGrid.hpp
|
|
|
|
ExPolygon.cpp
|
|
|
|
ExPolygon.hpp
|
|
|
|
ExPolygonCollection.cpp
|
|
|
|
ExPolygonCollection.hpp
|
|
|
|
Extruder.cpp
|
|
|
|
Extruder.hpp
|
|
|
|
ExtrusionEntity.cpp
|
|
|
|
ExtrusionEntity.hpp
|
|
|
|
ExtrusionEntityCollection.cpp
|
|
|
|
ExtrusionEntityCollection.hpp
|
|
|
|
ExtrusionSimulator.cpp
|
|
|
|
ExtrusionSimulator.hpp
|
|
|
|
FileParserError.hpp
|
|
|
|
Fill/Fill.cpp
|
|
|
|
Fill/Fill.hpp
|
|
|
|
Fill/Fill3DHoneycomb.cpp
|
|
|
|
Fill/Fill3DHoneycomb.hpp
|
|
|
|
Fill/FillBase.cpp
|
|
|
|
Fill/FillBase.hpp
|
|
|
|
Fill/FillConcentric.cpp
|
|
|
|
Fill/FillConcentric.hpp
|
|
|
|
Fill/FillHoneycomb.cpp
|
|
|
|
Fill/FillHoneycomb.hpp
|
|
|
|
Fill/FillGyroid.cpp
|
|
|
|
Fill/FillGyroid.hpp
|
|
|
|
Fill/FillPlanePath.cpp
|
|
|
|
Fill/FillPlanePath.hpp
|
|
|
|
Fill/FillRectilinear.cpp
|
|
|
|
Fill/FillRectilinear.hpp
|
|
|
|
Fill/FillRectilinear2.cpp
|
|
|
|
Fill/FillRectilinear2.hpp
|
|
|
|
Fill/FillRectilinear3.cpp
|
|
|
|
Fill/FillRectilinear3.hpp
|
|
|
|
Flow.cpp
|
|
|
|
Flow.hpp
|
|
|
|
Format/3mf.cpp
|
|
|
|
Format/3mf.hpp
|
|
|
|
Format/AMF.cpp
|
|
|
|
Format/AMF.hpp
|
|
|
|
Format/OBJ.cpp
|
|
|
|
Format/OBJ.hpp
|
|
|
|
Format/objparser.cpp
|
|
|
|
Format/objparser.hpp
|
|
|
|
Format/PRUS.cpp
|
|
|
|
Format/PRUS.hpp
|
|
|
|
Format/STL.cpp
|
|
|
|
Format/STL.hpp
|
|
|
|
GCode/Analyzer.cpp
|
|
|
|
GCode/Analyzer.hpp
|
|
|
|
GCode/CoolingBuffer.cpp
|
|
|
|
GCode/CoolingBuffer.hpp
|
|
|
|
GCode/PostProcessor.cpp
|
|
|
|
GCode/PostProcessor.hpp
|
|
|
|
GCode/PressureEqualizer.cpp
|
|
|
|
GCode/PressureEqualizer.hpp
|
|
|
|
GCode/PreviewData.cpp
|
|
|
|
GCode/PreviewData.hpp
|
|
|
|
GCode/PrintExtents.cpp
|
|
|
|
GCode/PrintExtents.hpp
|
|
|
|
GCode/SpiralVase.cpp
|
|
|
|
GCode/SpiralVase.hpp
|
|
|
|
GCode/ToolOrdering.cpp
|
|
|
|
GCode/ToolOrdering.hpp
|
|
|
|
GCode/WipeTower.hpp
|
|
|
|
GCode/WipeTowerPrusaMM.cpp
|
|
|
|
GCode/WipeTowerPrusaMM.hpp
|
|
|
|
GCode.cpp
|
|
|
|
GCode.hpp
|
|
|
|
GCodeReader.cpp
|
|
|
|
GCodeReader.hpp
|
|
|
|
GCodeSender.cpp
|
|
|
|
GCodeSender.hpp
|
|
|
|
GCodeTimeEstimator.cpp
|
|
|
|
GCodeTimeEstimator.hpp
|
|
|
|
GCodeWriter.cpp
|
|
|
|
GCodeWriter.hpp
|
|
|
|
Geometry.cpp
|
|
|
|
Geometry.hpp
|
|
|
|
Int128.hpp
|
|
|
|
# KdTree.hpp
|
|
|
|
Layer.cpp
|
|
|
|
Layer.hpp
|
|
|
|
LayerRegion.cpp
|
|
|
|
libslic3r.h
|
2018-09-24 09:53:05 +00:00
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/libslic3r_version.h"
|
2018-09-19 09:02:24 +00:00
|
|
|
Line.cpp
|
|
|
|
Line.hpp
|
|
|
|
Model.cpp
|
|
|
|
Model.hpp
|
|
|
|
ModelArrange.hpp
|
2018-11-12 13:52:52 +00:00
|
|
|
ModelArrange.cpp
|
2018-09-19 09:02:24 +00:00
|
|
|
MotionPlanner.cpp
|
|
|
|
MotionPlanner.hpp
|
|
|
|
MultiPoint.cpp
|
|
|
|
MultiPoint.hpp
|
|
|
|
MutablePriorityQueue.hpp
|
|
|
|
PerimeterGenerator.cpp
|
|
|
|
PerimeterGenerator.hpp
|
|
|
|
PlaceholderParser.cpp
|
|
|
|
PlaceholderParser.hpp
|
|
|
|
Point.cpp
|
|
|
|
Point.hpp
|
|
|
|
Polygon.cpp
|
|
|
|
Polygon.hpp
|
|
|
|
Polyline.cpp
|
|
|
|
Polyline.hpp
|
|
|
|
PolylineCollection.cpp
|
|
|
|
PolylineCollection.hpp
|
|
|
|
Print.cpp
|
|
|
|
Print.hpp
|
2018-11-08 13:23:17 +00:00
|
|
|
PrintBase.cpp
|
|
|
|
PrintBase.hpp
|
2018-09-19 09:02:24 +00:00
|
|
|
PrintExport.hpp
|
|
|
|
PrintConfig.cpp
|
|
|
|
PrintConfig.hpp
|
|
|
|
PrintObject.cpp
|
|
|
|
PrintRegion.cpp
|
|
|
|
Rasterizer/Rasterizer.hpp
|
|
|
|
Rasterizer/Rasterizer.cpp
|
2018-11-08 19:18:40 +00:00
|
|
|
SLAPrint.cpp
|
|
|
|
SLAPrint.hpp
|
2018-12-07 13:10:16 +00:00
|
|
|
SLA/SLAAutoSupports.hpp
|
|
|
|
SLA/SLAAutoSupports.cpp
|
2018-09-19 09:02:24 +00:00
|
|
|
Slicing.cpp
|
|
|
|
Slicing.hpp
|
|
|
|
SlicingAdaptive.cpp
|
|
|
|
SlicingAdaptive.hpp
|
|
|
|
SupportMaterial.cpp
|
|
|
|
SupportMaterial.hpp
|
|
|
|
Surface.cpp
|
|
|
|
Surface.hpp
|
|
|
|
SurfaceCollection.cpp
|
|
|
|
SurfaceCollection.hpp
|
|
|
|
SVG.cpp
|
|
|
|
SVG.hpp
|
|
|
|
Technologies.hpp
|
|
|
|
TriangleMesh.cpp
|
|
|
|
TriangleMesh.hpp
|
|
|
|
utils.cpp
|
|
|
|
Utils.hpp
|
2018-11-21 14:21:57 +00:00
|
|
|
MTUtils.hpp
|
2018-11-02 10:57:57 +00:00
|
|
|
SLA/SLABoilerPlate.hpp
|
|
|
|
SLA/SLABasePool.hpp
|
|
|
|
SLA/SLABasePool.cpp
|
|
|
|
SLA/SLASupportTree.hpp
|
|
|
|
SLA/SLASupportTree.cpp
|
|
|
|
SLA/SLASupportTreeIGL.cpp
|
|
|
|
SLA/SLARotfinder.hpp
|
|
|
|
SLA/SLARotfinder.cpp
|
|
|
|
SLA/SLABoostAdapter.hpp
|
|
|
|
SLA/SLASpatIndex.hpp
|
2018-09-19 09:02:24 +00:00
|
|
|
)
|
|
|
|
|
2018-11-20 21:59:56 +00:00
|
|
|
if (NOT SLIC3R_SYNTAXONLY)
|
|
|
|
add_precompiled_header(libslic3r pchheader.hpp FORCEINCLUDE)
|
|
|
|
endif ()
|
2018-10-29 15:01:26 +00:00
|
|
|
|
2018-09-19 09:02:24 +00:00
|
|
|
target_compile_definitions(libslic3r PUBLIC -DUSE_TBB ${PNG_DEFINITIONS})
|
2018-11-26 13:41:58 +00:00
|
|
|
target_include_directories(libslic3r PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${LIBNEST2D_INCLUDES} ${PNG_INCLUDE_DIRS} PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
|
2018-09-19 09:02:24 +00:00
|
|
|
target_link_libraries(libslic3r
|
2018-10-23 15:18:38 +00:00
|
|
|
libnest2d
|
2018-09-19 09:02:24 +00:00
|
|
|
admesh
|
2018-11-06 17:01:18 +00:00
|
|
|
miniz
|
2018-09-19 09:02:24 +00:00
|
|
|
${Boost_LIBRARIES}
|
2018-11-06 17:01:18 +00:00
|
|
|
clipper
|
2018-09-19 09:02:24 +00:00
|
|
|
nowide
|
2018-11-06 17:01:18 +00:00
|
|
|
${EXPAT_LIBRARIES}
|
|
|
|
${GLEW_LIBRARIES}
|
2018-09-19 09:02:24 +00:00
|
|
|
${PNG_LIBRARIES}
|
2018-11-06 17:01:18 +00:00
|
|
|
polypartition
|
|
|
|
poly2tri
|
2018-09-19 09:02:24 +00:00
|
|
|
qhull
|
|
|
|
semver
|
2018-10-22 12:53:48 +00:00
|
|
|
tbb
|
2018-09-19 09:02:24 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
if(SLIC3R_PROFILE)
|
|
|
|
target_link_libraries(slic3r Shiny)
|
|
|
|
endif()
|