-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
32 lines (26 loc) · 1.17 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
cmake_minimum_required(VERSION 3.16)
project(some-project)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
### libIGL options: choose between header only and compiled static library
option(LIBIGL_USE_STATIC_LIBRARY "Use libigl as static library" OFF)
option(LIBIGL_GLFW "Use GLFW" ON)
include(libigl)
igl_include(copyleft comiso)
include_directories(${CMAKE_SOURCE_DIR}/src)
# Add your project files
include_directories("include/")
if(USE_SOLUTION)
file(GLOB SRCFILES solution/*.cpp)
else()
file(GLOB SRCFILES src/*.cpp)
endif()
add_library(core ${SRCFILES})
target_link_libraries(core igl::core igl::glfw)
add_executable(main "main.cpp")
# add_executable(frame_field_tutorial "frame_field_tutorial.cpp")
add_executable(interactive_visualizer "interactive_visualizer.cpp")
add_executable(alignment_check "alignment_check.cpp")
target_link_libraries(main core igl::core igl::opengl igl::glfw)
# target_link_libraries(frame_field_tutorial core igl::core igl::glfw igl_copyleft::comiso)
target_link_libraries(interactive_visualizer core igl::core igl::opengl igl::glfw)
target_link_libraries(alignment_check core igl::core igl::opengl igl::glfw)