summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ea0b37067..aeec6dfa8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -350,6 +350,18 @@ if(FLTK_BUILD_SHARED_LIBS AND GENERATE_EXPORT_HEADERS)
endif(FLTK_BUILD_SHARED_LIBS AND GENERATE_EXPORT_HEADERS)
#######################################################################
+# Configure CPack only if this is the top level project.
+# The logic may be extended if including CPack is made optional.
+# Currently it is included unconditionally for testing purposes.
+#######################################################################
+
+if(FLTK_IS_TOPLEVEL)
+
+ add_subdirectory(package)
+
+endif()
+
+#######################################################################
# Output Build Configuration Summary
#######################################################################