summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2020-08-13 20:32:56 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2020-08-21 18:55:12 +0200
commit3b9a04ae2eeed139717c8b368b2e99c495394706 (patch)
treeb56e10d8f498415379f7ae28739ef93f22eb9fb4 /CMakeLists.txt
parentd91160a9e06bd4ee341ca93509dbce9393d9168a (diff)
CMake: add examples folder to build (optional)
- replace misnamed option 'OPTION_BUILD_EXAMPLES' with 'FLTK_BUILD_TEST' - add option 'FLTK_BUILD_EXAMPLES' to build apps in examples folder - move examples/fltk-versions.cxx to test/fltk-versions.cxx - [Travis-CI] enable option 'FLTK_BUILD_EXAMPLES' for automatic builds
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt13
1 files changed, 9 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 281d6b440..397ab5b3b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -118,11 +118,16 @@ configure_file (
)
#######################################################################
-# build examples - these have to be built after fluid is built/imported
+# options to build test/demo and example programs
#######################################################################
-if (OPTION_BUILD_EXAMPLES)
- add_subdirectory (test)
-endif (OPTION_BUILD_EXAMPLES)
+
+if (FLTK_BUILD_TEST)
+ add_subdirectory (test)
+endif (FLTK_BUILD_TEST)
+
+if (FLTK_BUILD_EXAMPLES)
+ add_subdirectory (examples)
+endif (FLTK_BUILD_EXAMPLES)
#######################################################################
# Android Studio wrapup