-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
61 lines (40 loc) · 1.56 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
cmake_minimum_required(VERSION 3.16)
project(LunarMP VERSION 1.0.0)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
list(APPEND CMAKE_PREFIX_PATH "/home/linuxbrew/.linuxbrew")
set(CMAKE_CXX_STANDARD 14)
set(PROJECT_SRCS
src/lunarmp/Application.cpp
src/lunarmp/communication/CommandLine.cpp
src/lunarmp/settings/Settings.cpp
src/lunarmp/controller/TaskWorker.cpp
src/lunarmp/controller/ModelController.cpp
src/lunarmp/model/ModelCheck.cpp
src/lunarmp/model/ModelRepair.cpp
src/lunarmp/model/ModelCompare.cpp
src/lunarmp/model/ModelSimplification.cpp
src/lunarmp/test/ModelTest.cpp
src/lunarmp/utils/logoutput.cpp
src/lunarmp/utils/SMProgress.cpp
src/lunarmp/utils/TimeKeeper.cpp
)
add_library(_LunarMP STATIC ${PROJECT_SRCS})
# GMP
find_package(GMP REQUIRED)
target_include_directories(_LunarMP PUBLIC ${GMP_INCLUDE_DIR})
target_link_libraries(_LunarMP PUBLIC ${GMP_LIBRARIES})
# MPFR
find_package(MPFR REQUIRED)
# EIGEN3
find_package(Eigen3 REQUIRED)
target_include_directories(_LunarMP PUBLIC ${EIGEN3_INCLUDE_DIR})
# CGAL and its components
find_package(CGAL REQUIRED)
target_include_directories(_LunarMP PUBLIC ${CGAL_INCLUDE_DIRS})
# Boost and its components
find_package(Boost REQUIRED)
target_link_libraries(_LunarMP PUBLIC CGAL::CGAL)
target_include_directories(_LunarMP PUBLIC src/rapidjson)
add_executable(LunarMP src/lunarmp/main.cpp)
target_link_libraries(LunarMP _LunarMP)
target_include_directories(LunarMP PUBLIC ${CGAL_INCLUDE_DIRS})