We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef58c8b commit e948abdCopy full SHA for e948abd
CMakeLists.txt
@@ -2,6 +2,9 @@ include_guard()
2
3
cmake_minimum_required (VERSION 3.15...3.20)
4
5
+# Add a build option for enabling examples
6
+option(TE_ADD_EXAMPLES "Add the example targets" ON)
7
+
8
file(READ VERSION.md CURRENT_VERSION)
9
project(tracktion
10
VERSION ${CURRENT_VERSION}
@@ -20,5 +23,7 @@ endif()
20
23
21
24
add_subdirectory(modules)
22
25
-enable_testing()
-add_subdirectory(examples)
26
+if (TE_ADD_EXAMPLES)
27
+ enable_testing()
28
+ add_subdirectory(examples)
29
+endif()
0 commit comments