-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
34 lines (24 loc) · 1.36 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
cmake_minimum_required(VERSION 3.16)
set(CMAKE_CONFIGURATION_TYPES Debug Release CACHE TYPE INTERNAL FORCE)
list(PREPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
project(Interactive_ARAP)
# Options
set(LIBRARY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Libs CACHE PATH "Path to lib folder")
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fsanitize=address")
# Executables
LIST(APPEND HEADER_FILES "include/main.h" "include/cotangent_weight_matrix.h" "include/rotation_matrix.h" "include/system_matrix.h" "include/ARAP_iteration.h")
LIST(APPEND SOURCE_FILES "src/main.cpp" "src/cotangent_weight_matrix.cpp" "src/rotation_matrix.cpp" "src/system_matrix.cpp" "src/ARAP_iteration.cpp")
set(Eigen3_DIR ${LIBRARY_DIR}/Eigen/share/eigen3/cmake CACHE PATH "Path to installed Eigen")
include(libigl)
# Include optional libigl modules
#igl_include(module)
igl_include(glfw)
# Create a build target
add_executable(app ${SOURCE_FILES} ${HEADER_FILES})
#target_link_libraries(app igl::core igl::opengl igl::opengl_glfw igl::opengl_glfw_imgui)
target_link_libraries(app Eigen3::Eigen igl::glfw)
target_include_directories(app PUBLIC ${EIGEN3_INCLUDE_DIR} "include")
# Visual Studio properties
#set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT app)
#set_property(TARGET app PROPERTY VS_DEBUGGER_WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/)