forked from gilbo/cork
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
47 lines (37 loc) · 1.2 KB
/
CMakeLists.txt
File metadata and controls
47 lines (37 loc) · 1.2 KB
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
cmake_minimum_required(VERSION 3.1)
project(cork)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/CMake)
add_library(cork STATIC
src/file_formats/files.cpp
src/file_formats/ifs.cpp
src/file_formats/off.cpp
src/isct/empty3d.cpp
src/isct/quantization.cpp
src/isct/triangle.c
src/util/log.cpp
src/util/timer.cpp
src/cork.cpp)
add_executable(cork-bin src/main.cpp)
set_target_properties(cork PROPERTIES CXX_STANDARD 11)
set_target_properties(cork PROPERTIES CXX_STANDARD_REQUIRED ON)
set_target_properties(cork-bin PROPERTIES CXX_STANDARD 11)
set_target_properties(cork-bin PROPERTIES CXX_STANDARD_REQUIRED ON)
set(INCLUDEDIRS
src/mesh
src/accel/
src/file_formats/
src/isct/
src/math/
src/mesh/
src/rawmesh/
src/util/
)
target_include_directories(cork PRIVATE ${INCLUDEDIRS})
target_include_directories(cork-bin PRIVATE ${INCLUDEDIRS})
set_target_properties(cork-bin PROPERTIES OUTPUT_NAME cork)
find_package(GMP REQUIRED)
target_link_libraries(cork PUBLIC ${GMP_LIBRARIES})
target_include_directories(cork PUBLIC ${GMP_INCLUDES})
target_compile_definitions(cork PRIVATE
-DNO_TIMER -DREDUCED -DCDT_ONLY -DTRILIBRARY -DANSI_DECLARATORS)
target_link_libraries(cork-bin PRIVATE cork)