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)
|
|
|
|
|
2019-08-16 14:17:37 +00:00
|
|
|
if (MINGW)
|
|
|
|
add_compile_options(-Wa,-mbig-obj)
|
|
|
|
endif ()
|
|
|
|
|
2019-11-01 14:31:26 +00:00
|
|
|
set(OpenVDBUtils_SOURCES "")
|
|
|
|
if (TARGET OpenVDB::openvdb)
|
|
|
|
set(OpenVDBUtils_SOURCES OpenVDBUtils.cpp OpenVDBUtils.hpp)
|
|
|
|
endif()
|
|
|
|
|
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
|
2019-11-01 18:59:09 +00:00
|
|
|
ElephantFootCompensation.cpp
|
|
|
|
ElephantFootCompensation.hpp
|
2018-09-19 09:02:24 +00:00
|
|
|
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
|
2019-08-16 14:17:37 +00:00
|
|
|
GCode/PostProcessor.hpp
|
2019-01-29 17:07:45 +00:00
|
|
|
# GCode/PressureEqualizer.cpp
|
|
|
|
# GCode/PressureEqualizer.hpp
|
2018-09-19 09:02:24 +00:00
|
|
|
GCode/PreviewData.cpp
|
|
|
|
GCode/PreviewData.hpp
|
|
|
|
GCode/PrintExtents.cpp
|
|
|
|
GCode/PrintExtents.hpp
|
|
|
|
GCode/SpiralVase.cpp
|
|
|
|
GCode/SpiralVase.hpp
|
|
|
|
GCode/ToolOrdering.cpp
|
|
|
|
GCode/ToolOrdering.hpp
|
2019-06-17 08:26:33 +00:00
|
|
|
GCode/WipeTower.cpp
|
2018-09-19 09:02:24 +00:00
|
|
|
GCode/WipeTower.hpp
|
|
|
|
GCode.cpp
|
|
|
|
GCode.hpp
|
|
|
|
GCodeReader.cpp
|
|
|
|
GCodeReader.hpp
|
2019-01-16 11:22:17 +00:00
|
|
|
# GCodeSender.cpp
|
|
|
|
# GCodeSender.hpp
|
2018-09-19 09:02:24 +00:00
|
|
|
GCodeTimeEstimator.cpp
|
|
|
|
GCodeTimeEstimator.hpp
|
|
|
|
GCodeWriter.cpp
|
|
|
|
GCodeWriter.hpp
|
|
|
|
Geometry.cpp
|
|
|
|
Geometry.hpp
|
|
|
|
Int128.hpp
|
2019-09-27 09:42:52 +00:00
|
|
|
KDTreeIndirect.hpp
|
2018-09-19 09:02:24 +00:00
|
|
|
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
|
2019-07-01 16:22:07 +00:00
|
|
|
Arrange.hpp
|
|
|
|
Arrange.cpp
|
2018-09-19 09:02:24 +00:00
|
|
|
MotionPlanner.cpp
|
|
|
|
MotionPlanner.hpp
|
|
|
|
MultiPoint.cpp
|
|
|
|
MultiPoint.hpp
|
|
|
|
MutablePriorityQueue.hpp
|
2019-06-27 09:02:45 +00:00
|
|
|
ObjectID.cpp
|
|
|
|
ObjectID.hpp
|
2018-09-19 09:02:24 +00:00
|
|
|
PerimeterGenerator.cpp
|
|
|
|
PerimeterGenerator.hpp
|
|
|
|
PlaceholderParser.cpp
|
|
|
|
PlaceholderParser.hpp
|
|
|
|
Point.cpp
|
|
|
|
Point.hpp
|
|
|
|
Polygon.cpp
|
|
|
|
Polygon.hpp
|
2019-08-21 12:52:22 +00:00
|
|
|
PolygonTrimmer.cpp
|
|
|
|
PolygonTrimmer.hpp
|
2018-09-19 09:02:24 +00:00
|
|
|
Polyline.cpp
|
|
|
|
Polyline.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
|
|
|
PrintConfig.cpp
|
|
|
|
PrintConfig.hpp
|
|
|
|
PrintObject.cpp
|
|
|
|
PrintRegion.cpp
|
2019-08-09 15:01:37 +00:00
|
|
|
Semver.cpp
|
2019-09-26 07:44:38 +00:00
|
|
|
ShortestPath.cpp
|
|
|
|
ShortestPath.hpp
|
2018-11-08 19:18:40 +00:00
|
|
|
SLAPrint.cpp
|
|
|
|
SLAPrint.hpp
|
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
|
2019-02-05 18:45:52 +00:00
|
|
|
Tesselate.cpp
|
|
|
|
Tesselate.hpp
|
2018-09-19 09:02:24 +00:00
|
|
|
TriangleMesh.cpp
|
|
|
|
TriangleMesh.hpp
|
|
|
|
utils.cpp
|
|
|
|
Utils.hpp
|
2019-09-11 10:13:59 +00:00
|
|
|
Time.cpp
|
|
|
|
Time.hpp
|
2018-11-21 14:21:57 +00:00
|
|
|
MTUtils.hpp
|
2019-03-14 18:07:16 +00:00
|
|
|
Zipper.hpp
|
|
|
|
Zipper.cpp
|
2019-06-06 12:27:07 +00:00
|
|
|
MinAreaBoundingBox.hpp
|
|
|
|
MinAreaBoundingBox.cpp
|
2019-06-03 13:27:46 +00:00
|
|
|
miniz_extension.hpp
|
|
|
|
miniz_extension.cpp
|
2019-11-01 14:31:26 +00:00
|
|
|
${OpenVDBUtils_SOURCES}
|
2019-11-11 10:41:14 +00:00
|
|
|
SLA/Common.hpp
|
|
|
|
SLA/Common.cpp
|
|
|
|
SLA/Pad.hpp
|
|
|
|
SLA/Pad.cpp
|
|
|
|
SLA/SupportTreeBuilder.hpp
|
|
|
|
SLA/SupportTreeBuildsteps.hpp
|
|
|
|
SLA/SupportTreeBuildsteps.cpp
|
|
|
|
SLA/SupportTreeBuilder.cpp
|
|
|
|
SLA/Concurrency.hpp
|
|
|
|
SLA/SupportTree.hpp
|
|
|
|
SLA/SupportTree.cpp
|
|
|
|
# SLA/SupportTreeIGL.cpp
|
|
|
|
SLA/Rotfinder.hpp
|
|
|
|
SLA/Rotfinder.cpp
|
|
|
|
SLA/BoostAdapter.hpp
|
|
|
|
SLA/SpatIndex.hpp
|
|
|
|
SLA/Raster.hpp
|
|
|
|
SLA/Raster.cpp
|
|
|
|
SLA/RasterWriter.hpp
|
|
|
|
SLA/RasterWriter.cpp
|
2019-10-09 12:59:09 +00:00
|
|
|
SLA/ConcaveHull.hpp
|
|
|
|
SLA/ConcaveHull.cpp
|
2019-11-08 08:21:30 +00:00
|
|
|
SLA/Hollowing.hpp
|
|
|
|
SLA/Hollowing.cpp
|
2019-11-11 10:41:14 +00:00
|
|
|
SLA/JobController.hpp
|
|
|
|
SLA/SupportPoint.hpp
|
|
|
|
SLA/SupportPointGenerator.hpp
|
|
|
|
SLA/SupportPointGenerator.cpp
|
|
|
|
SLA/Contour3D.hpp
|
|
|
|
SLA/Contour3D.cpp
|
|
|
|
SLA/EigenMesh3D.hpp
|
|
|
|
SLA/Clustering.hpp
|
2018-09-19 09:02:24 +00:00
|
|
|
)
|
|
|
|
|
2019-08-19 10:25:18 +00:00
|
|
|
encoding_check(libslic3r)
|
|
|
|
|
2019-10-14 10:50:08 +00:00
|
|
|
target_compile_definitions(libslic3r PUBLIC -DUSE_TBB -DTBB_USE_CAPTURED_EXCEPTION=0)
|
2019-03-18 15:00:21 +00:00
|
|
|
target_include_directories(libslic3r PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${LIBNEST2D_INCLUDES} 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
|
2019-06-26 11:26:49 +00:00
|
|
|
cereal
|
2019-06-19 12:52:55 +00:00
|
|
|
libigl
|
2018-11-06 17:01:18 +00:00
|
|
|
miniz
|
2019-06-13 11:15:10 +00:00
|
|
|
boost_libs
|
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}
|
2019-02-05 17:14:07 +00:00
|
|
|
glu-libtess
|
2018-11-06 17:01:18 +00:00
|
|
|
polypartition
|
|
|
|
poly2tri
|
2018-09-19 09:02:24 +00:00
|
|
|
qhull
|
|
|
|
semver
|
2019-10-14 10:50:08 +00:00
|
|
|
TBB::tbb
|
2019-09-24 13:15:49 +00:00
|
|
|
${CMAKE_DL_LIBS}
|
2018-09-19 09:02:24 +00:00
|
|
|
)
|
|
|
|
|
2019-11-01 14:31:26 +00:00
|
|
|
if (TARGET OpenVDB::openvdb)
|
|
|
|
target_link_libraries(libslic3r OpenVDB::openvdb)
|
|
|
|
endif()
|
|
|
|
|
2018-12-18 10:31:41 +00:00
|
|
|
if(WIN32)
|
|
|
|
target_link_libraries(libslic3r Psapi.lib)
|
|
|
|
endif()
|
|
|
|
|
2018-09-19 09:02:24 +00:00
|
|
|
if(SLIC3R_PROFILE)
|
|
|
|
target_link_libraries(slic3r Shiny)
|
|
|
|
endif()
|
2019-11-11 12:56:05 +00:00
|
|
|
|
|
|
|
if (SLIC3R_PCH AND NOT SLIC3R_SYNTAXONLY)
|
|
|
|
add_precompiled_header(libslic3r pchheader.hpp FORCEINCLUDE)
|
|
|
|
endif ()
|