summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
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