-
-
Notifications
You must be signed in to change notification settings - Fork 123
Expand file tree
/
Copy pathBuildExamples.cmake
More file actions
23 lines (22 loc) · 1.11 KB
/
BuildExamples.cmake
File metadata and controls
23 lines (22 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
option(DGTAL_BUILD_EXAMPLES "Build examples." OFF)
if (DGTAL_BUILD_EXAMPLES)
message(STATUS "Build examples ENABLED")
add_subdirectory (${PROJECT_SOURCE_DIR}/examples)
else()
message(STATUS "Build examples DISABLED (you can activate the examples with '-DDGTAL_BUILD_EXAMPLES=ON' cmake option)")
endif()
message(STATUS "-------------------------------------------------------------------------------")
# -----------------------------------------------------------------------------
# Specific examples
# -----------------------------------------------------------------------------
if (DGTAL_BUILD_EXAMPLES)
# -----------------------------------------------------------------------------
# polyscope examples
# -----------------------------------------------------------------------------
if (DGTAL_WITH_POLYSCOPE_VIEWER)
message(STATUS "Build polyscope examples ENABLED (DGTAL_WITH_POLYSCOPE_VIEWER)")
else()
message(STATUS "Build polyscope examples DISABLED (DGTAL_WITH_POLYSCOPE_VIEWER)")
endif()
endif()
message(STATUS "-------------------------------------------------------------------------------")