From 9ba4cd06dc28d63537c6412200bfe0dee4540f39 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Tue, 18 Aug 2020 13:13:41 +0200 Subject: CMake: add feature and configuration summary --- CMakeLists.txt | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) 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") -- cgit v1.2.3