Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2017-08-16 20:05:08 +0300
committerbubnikv <bubnikv@gmail.com>2017-08-16 20:05:08 +0300
commit5673205d2e1e144cbf630358f483f56507926d21 (patch)
tree6413feb819b792c011713b569ef29d1093a626cc /CMakeLists.txt
parent507f2ff45ec5c318dd9db31b7074768174660c82 (diff)
Initial implementation of a CMake build system for the Slic3r XS module.
Based on https://github.com/CReimer/Slic3r/tree/makefile_pr Big thanks to @CReimer for his huge effort.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 000000000..e6cf48157
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,29 @@
+# Boost 1.63 requires CMake 3.7 or newer
+cmake_minimum_required(VERSION 3.7)
+
+project(Slic3r)
+
+if (MSVC OR MINGW OR APPLE)
+ set(SLIC3R_STATIC_INITIAL 1)
+else ()
+ set(SLIC3R_STATIC_INITIAL 0)
+endif ()
+
+option(SLIC3R_STATIC "Compile Slic3r with static libraries (Boost, TBB, glew)" ${SLIC3R_STATIC_INITIAL})
+option(SLIC3R_PROFILE "Compile Slic3r with an invasive Shiny profiler" 0)
+option(SLIC3R_HAS_BROKEN_CROAK "Compile Slic3r for a broken Strawberry Perl 64bit" 0)
+option(SLIC3R_MSVC_COMPILE_PARALLEL "Compile on Visual Studio in parallel" 1)
+
+if (MSVC AND SLIC3R_MSVC_COMPILE_PARALLEL)
+ set(CMAKE_C_FLAGS ${CMAKE_CXX_FLAGS} /MP)
+ set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} /MP)
+endif ()
+
+add_subdirectory(xs)
+
+install(PROGRAMS slic3r.pl DESTINATION bin RENAME slic3r-prusa3d)
+
+file(GLOB MyVar var/*.png)
+install(FILES ${MyVar} DESTINATION share/slic3r-prusa3d)
+install(FILES lib/Slic3r.pm DESTINATION lib/slic3r-prusa3d)
+install(DIRECTORY lib/Slic3r DESTINATION lib/slic3r-prusa3d)