-
Notifications
You must be signed in to change notification settings - Fork 122
/
CMakeLists.txt
49 lines (44 loc) · 1.11 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
cmake_minimum_required(VERSION 3.16)
project(example)
list(PREPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
# Libigl
include(libigl)
# Enable the target igl::glfw
igl_include(glfw)
# Other modules you could enable
#igl_include(embree)
#igl_include(imgui)
#igl_include(opengl)
#igl_include(stb)
#igl_include(predicates)
#igl_include(xml)
#igl_include(copyleft cgal)
#igl_include(copyleft comiso)
#igl_include(copyleft core)
#igl_include(copyleft cork)
#igl_include(copyleft tetgen)
#igl_include(restricted matlab)
#igl_include(restricted mosek)
#igl_include(restricted triangle)
# Add your project files
file(GLOB SRC_FILES *.cpp)
add_executable(${PROJECT_NAME} ${SRC_FILES})
# Link igl (and the glfw module) to your project
target_link_libraries(${PROJECT_NAME} PUBLIC
igl::glfw
## Other modules you could link to
# igl::embree
# igl::imgui
# igl::opengl
# igl::stb
# igl::predicates
# igl::xml
# igl_copyleft::cgal
# igl_copyleft::comiso
# igl_copyleft::core
# igl_copyleft::cork
# igl_copyleft::tetgen
# igl_restricted::matlab
# igl_restricted::mosek
# igl_restricted::triangle
)