summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2020-08-18 13:13:41 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2020-08-21 19:00:38 +0200
commit9ba4cd06dc28d63537c6412200bfe0dee4540f39 (patch)
tree378bec050892dd79bb5503c1145e25c9af8a23af /CMakeLists.txt
parent3b9a04ae2eeed139717c8b368b2e99c495394706 (diff)
CMake: add feature and configuration summary
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt30
1 files changed, 30 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 397ab5b3b..9693b673e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -183,3 +183,33 @@ if (OPTION_BUILD_SHARED_LIBS AND GENERATE_EXPORT_HEADERS)
endif (NOT MSVC)
endif (OPTION_BUILD_SHARED_LIBS AND GENERATE_EXPORT_HEADERS)
+
+#######################################################################
+# Output Configuration Summary
+#######################################################################
+
+include (FeatureSummary)
+
+message ("")
+feature_summary (WHAT ALL DESCRIPTION "Configuration Summary --\n")
+
+message (STATUS "Static libraries will be written to ${CMAKE_CURRENT_BINARY_DIR}/lib")
+
+if (OPTION_BUILD_SHARED_LIBS)
+ message (STATUS "Shared libraries will be written to ${CMAKE_CURRENT_BINARY_DIR}/lib")
+else ()
+ message (STATUS "Shared libraries will not be built (set OPTION_BUILD_SHARED_LIBS=ON to build)")
+endif ()
+
+if (FLTK_BUILD_TEST)
+ message (STATUS "Test programs will be written to ${CMAKE_CURRENT_BINARY_DIR}/bin/test")
+endif ()
+
+if (FLTK_BUILD_EXAMPLES)
+ message (STATUS "Example programs will be written to ${CMAKE_CURRENT_BINARY_DIR}/bin/examples")
+else ()
+ message (STATUS "Example programs will not be built (set FLTK_BUILD_EXAMPLES=ON to build)")
+endif ()
+
+message ("")
+message (STATUS "End of Configuration Summary --\n")