forked from crawforddoran/quartet
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakeLists.txt
51 lines (45 loc) · 1.3 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
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(Quartet)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -DNDEBUG -Wall -funroll-loops")
SET(SRC_FILES src/predicates.cpp
src/geometry_queries.cpp
src/sdf.cpp
src/trimesh.cpp
src/tet_mesh.cpp
src/feature.cpp
src/read_obj.cpp
src/tet_quality.cpp
src/match_features.cpp
src/optimize_tet_mesh.cpp
src/make_signed_distance.cpp
src/make_tet_mesh.cpp)
ADD_LIBRARY(quartet ${SRC_FILES})
if(UNIX)
TARGET_COMPILE_OPTIONS(quartet PRIVATE -fPIC)
TARGET_LINK_LIBRARIES(quartet PRIVATE m)
endif(UNIX)
ADD_EXECUTABLE(quartet_bin src/main.cpp)
TARGET_LINK_LIBRARIES(quartet_bin PRIVATE quartet)
SET_TARGET_PROPERTIES(quartet_bin PROPERTIES OUTPUT_NAME quartet)
INSTALL(TARGETS quartet quartet_bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin
)
INSTALL(FILES
src/array3.h
src/feature.h
src/geometry_queries.h
src/gluvi.h
src/make_signed_distance.h
src/make_tet_mesh.h
src/match_features.h
src/optimize_tet_mesh.h
src/read_obj.h
src/sdf.h
src/tet_mesh.h
src/tet_quality.h
src/trimesh.h
src/util.h
src/vec.h
DESTINATION include/quartet)