forked from nmwsharp/polyscope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
43 lines (36 loc) · 891 Bytes
/
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
if("${POLYSCOPE_BACKEND_OPENGL3_GLFW}")
## Glad
if(NOT TARGET glad)
add_subdirectory(glad)
endif()
## GLFW
if(NOT TARGET glfw)
set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
set(GLFW_INSTALL OFF CACHE BOOL "" FORCE)
add_subdirectory(glfw)
endif()
endif()
## glm
if(NOT TARGET glm::glm)
add_subdirectory(glm)
target_compile_definitions(glm INTERFACE GLM_ENABLE_EXPERIMENTAL)
set_target_properties(glm PROPERTIES LINKER_LANGUAGE CXX)
endif()
## Imgui
if(NOT TARGET imgui)
add_subdirectory(imgui)
endif()
## Json
if(NOT TARGET nlohmann_json::nlohmann_json)
add_subdirectory(json)
endif()
## MarchingCube
if(NOT TARGET MarchingCube::MarchingCube)
add_subdirectory(MarchingCubeCpp)
endif()
## stb
if(NOT TARGET stb)
add_subdirectory(stb)
endif()