-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
50 lines (42 loc) · 2 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
cmake_minimum_required(VERSION 3.14)
project(MeshlessDeformationsBasedOnShapeMatching)
set_property(GLOBAL PROPERTY USE_FOLDER ON)
include(FetchContent)
set(LIBIGL_USE_STATIC_LIBRARY ON CACHE STRING "Use libigl as static library" )
set(LIBIGL_WITH_CGAL OFF CACHE INTERNAL "Use CGAL" )
set(LIBIGL_WITH_COMISO OFF CACHE INTERNAL "Use CoMiso" )
set(LIBIGL_WITH_CORK OFF CACHE INTERNAL "Use Cork" )
set(LIBIGL_WITH_EMBREE OFF CACHE INTERNAL "Use Embree" )
set(LIBIGL_WITH_MATLAB OFF CACHE INTERNAL "Use Matlab" )
set(LIBIGL_WITH_MOSEK OFF CACHE INTERNAL "Use MOSEK" )
set(LIBIGL_WITH_PNG OFF CACHE INTERNAL "Use PNG" )
set(LIBIGL_WITH_TETGEN OFF CACHE INTERNAL "Use Tetgen" )
set(LIBIGL_WITH_TRIANGLE OFF CACHE INTERNAL "Use Triangle" )
set(LIBIGL_WITH_PREDICATES OFF CACHE INTERNAL "Use exact predicates" )
set(LIBIGL_WITH_XML OFF CACHE INTERNAL "Use XML" )
set(LIBIGL_WITHOUT_COPYLEFT OFF CACHE INTERNAL "Disable Copyleft libraries" )
set(LIBIGL_WITH_OPENGL ON CACHE INTERNAL "download libigl with opengl" )
set(LIBIGL_WITH_OPENGL_GLFW ON CACHE INTERNAL "download libigl with glfw" )
set(LIBIGL_WITH_OPENGL_GLFW_IMGUI ON CACHE INTERNAL "download libigl with imgui" )
FetchContent_Declare(
_libigl
GIT_REPOSITORY https://github.com/libigl/libigl
GIT_TAG v2.2.0
)
FetchContent_MakeAvailable(_libigl)
add_executable(App)
set_target_properties(App PROPERTIES FOLDER meshless-deformation)
target_compile_features(App PRIVATE cxx_std_17)
target_include_directories(App
PRIVATE
src/
)
target_sources(App
PRIVATE
# headers
src/deformable_mesh.h
# sources
src/main.cpp
src/deformable_mesh.cpp
)
target_link_libraries(App PRIVATE igl::core igl::opengl_glfw_imgui)