-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCMakeLists.txt
62 lines (43 loc) · 2.35 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
cmake_minimum_required(VERSION 3.1)
project(woven_param)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
add_definitions(-DIGL_VIEWER_VIEWER_QUIET)
find_package(OpenMP REQUIRED)
option(LIBIGL_USE_STATIC_LIBRARY "Use libigl as static library" OFF)
if (NOT TARGET igl::core)
add_subdirectory(lib/libigl)
endif()
if (NOT TARGET nlohmann_json)
add_subdirectory(lib/json)
endif()
add_subdirectory(lib/implot)
add_subdirectory(lib/clipper)
include_directories(include)
file(GLOB PARAMSRC src/param/*.cpp)
add_library(${PROJECT_NAME} ${PARAMSRC})
target_include_directories(${PROJECT_NAME} PUBLIC include include/param)
target_link_libraries(${PROJECT_NAME} PUBLIC igl::core nlohmann_json polyclipping)
add_executable(woven_viz app/woven_viz.cpp)
target_link_libraries(woven_viz woven_param igl::opengl_glfw igl::opengl_glfw_imgui igl::png)
add_executable(reflec_param app/reflec_param.cpp)
target_link_libraries(reflec_param woven_param igl::opengl_glfw igl::opengl_glfw_imgui igl::triangle)
add_executable(multiple_poses app/multiple_poses.cpp)
target_link_libraries(multiple_poses woven_param igl::opengl_glfw igl::opengl_glfw_imgui igl::png)
add_executable(procrustes_test app/procrustes_test.cpp)
target_link_libraries(procrustes_test woven_param igl::opengl_glfw_imgui)
add_executable(triangle_energies app/triangle_energies.cpp src/surface_net.cpp)
target_link_libraries(triangle_energies woven_param igl::opengl_glfw igl::opengl_glfw_imgui)
add_executable(measure_alignment app/measure_alignment.cpp)
target_link_libraries(measure_alignment woven_param)
add_executable(flatten app/flatten.cpp)
target_link_libraries(flatten woven_param)
add_executable(split app/split.cpp)
target_link_libraries(split woven_param igl::opengl_glfw igl::opengl_glfw_imgui)
add_executable(split_and_flatten app/split_and_flatten.cpp)
target_link_libraries(split_and_flatten woven_param)
add_executable(flatten_with_semantic_constraints app/flatten_with_semantic_constraints.cpp)
target_link_libraries(flatten_with_semantic_constraints woven_param igl::opengl_glfw)
add_executable(flatten_with_json_constraints app/flatten_with_json_constraints.cpp)
target_link_libraries(flatten_with_json_constraints woven_param igl::opengl_glfw nlohmann_json)
add_executable(test_split_ccs app/test_split_ccs.cpp)
target_link_libraries(test_split_ccs woven_param igl::opengl_glfw)