forked from Ultimaker/CuraEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
78 lines (60 loc) · 1.59 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
project(CuraEngine)
cmake_minimum_required(VERSION 2.8.12)
find_package(Arcus REQUIRED)
if(NOT ${CMAKE_VERSION} VERSION_LESS 3.1)
set(CMAKE_CXX_STANDARD 11)
else()
set(CMAKE_CXX_FLAGS "-std=c++11")
endif()
# Add warnings
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
include_directories(${CMAKE_CURRENT_BINARY_DIR} libs)
#add_library(clipper STATIC libs/clipper/clipper.cpp)
set(engine_SRCS
src/bridge.cpp
src/comb.cpp
src/commandSocket.cpp
src/gcodeExport.cpp
src/gcodePlanner.cpp
src/infill.cpp
src/inset.cpp
src/layerPart.cpp
src/mesh.cpp
src/multiVolumes.cpp
src/pathOrderOptimizer.cpp
src/polygonOptimizer.cpp
src/raft.cpp
src/settingRegistry.cpp
src/settings.cpp
src/skin.cpp
src/skirt.cpp
src/slicer.cpp
src/support.cpp
src/timeEstimate.cpp
src/Weaver.cpp
src/Wireframe2gcode.cpp
src/modelFile/modelFile.cpp
src/utils/gettime.cpp
src/utils/logoutput.cpp
src/utils/polygonUtils.cpp
src/utils/polygon.cpp
libs/clipper/clipper.cpp
)
set(app_SRCS
src/main.cpp
)
protobuf_generate_cpp(engine_PB_SRCS engine_PB_HEADERS Cura.proto)
add_executable(CuraEngine ${app_SRCS} ${engine_SRCS} ${engine_PB_SRCS})
target_link_libraries(CuraEngine Arcus)
add_library(libCuraEngine SHARED EXCLUDE_FROM_ALL ${engine_SRCS} ${engine_PB_SRCS})
if (UNIX)
target_link_libraries(CuraEngine pthread)
endif()
set(test_SRCS
src/test.cpp
src/utils/polygonUtils.cpp
src/utils/gettime.cpp
libs/clipper/clipper.cpp
)
add_executable(Test ${test_SRCS})
target_link_libraries(Test Arcus)