-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
25 lines (18 loc) · 834 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
25 lines (18 loc) · 834 Bytes
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
cmake_minimum_required(VERSION 3.5...3.22)
project(polyscope)
### Policy settings
cmake_policy(SET CMP0054 NEW) # don't implicitly dereference inside if()
## Project options
# Backend
set(POLYSCOPE_BACKEND_OPENGL3_GLFW "ON" CACHE BOOL "Enable openGL3_glfw backend")
set(POLYSCOPE_BACKEND_OPENGL_MOCK "ON" CACHE BOOL "Enable openGL_mock backend")
set(POLYSCOPE_BACKEND_OPENGL3_EGL "AUTO" CACHE STRING "Enable openGL3_egl backend") # 'AUTO' means "if we're on linux and EGL.h is available"
### Do anything needed for dependencies and bring their stuff in to scope
add_subdirectory(deps)
### Add things for this project
add_subdirectory(src)
add_subdirectory(examples/my-app)
add_subdirectory(examples/benchmark)
add_subdirectory(examples/super_conductor)
add_subdirectory(examples/dragon)
add_subdirectory(examples/field_lines)