-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
54 lines (42 loc) · 1.1 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
__enable_cxx17()
include(StandardProjectSettings.cmake)
__build_crslice_info_header()
if (NOT APPLE)
option(ENABLE_OPENMP "Use OpenMP for parallel code" ON)
endif ()
#__cc_find(slice3rBase)
#add_definitions(-DG2G3_CONFIGURE_ENABLE)
#add_subdirectory(slice3rBase)
__cc_find(polyclipping)
set(ILIBS crcommon polyclipping Slice3rBase mmesh)
set(SRCS crslice/interface.h
crslice/header.h
crslice/crslice.h
crslice/crscene.h
crslice/crcacheslice.h
src/crslice.cpp
src/crcacheslice.cpp
src/crscene.cpp
src/crobject.h
src/crobject.cpp
src/crextruder.h
src/crextruder.cpp
src/crgroup.h
src/crgroup.cpp
src/crslicefromscene.h
src/crslicefromscene.cpp
src/cachedebugger.h
src/cachedebugger.cpp
src/create.h
src/create.cpp
src/conv.h
src/conv.cpp
)
set(INCS ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/src)
set(DEFS BOOST_ALL_NO_LIB)
set(INTERFACES ${CMAKE_CURRENT_SOURCE_DIR})
include(impl/cura5.0/cura.cmake)
__add_common_library(crslice)
__set_folder_targets(slice TARGET crslice)
use_threads(crslice)
enable_sanitizers(crslice)