From 5df5daf78e135e0c8371012ffe56df5cae357755 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Wed, 20 Dec 2023 16:56:29 +0100 Subject: Make the 'Forms' compatibility library 'fltk_forms' optional This library is no longer needed in FLTK itself. There is only one demo program (test/forms.cxx) that uses it if it is built. The demo program displays a message if fltk_forms is not available. The default is 'enabled' for backwards compatibility but this may be changed to 'disabled' in a future version. --- CMakeLists.txt | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index d2ae79f14..210cfa0d9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -219,34 +219,40 @@ message ("") set (_descr "${PROJECT_NAME} ${FLTK_VERSION} generated by CMake ${CMAKE_VERSION}") feature_summary (WHAT ALL DESCRIPTION "Configuration Summary for ${_descr} --\n") -message (STATUS "Static libraries will be built in ${CMAKE_CURRENT_BINARY_DIR}/lib") +message (STATUS "Static libraries will be built in ${CMAKE_CURRENT_BINARY_DIR}/lib") if (OPTION_BUILD_SHARED_LIBS) - message (STATUS "Shared libraries will be built in ${CMAKE_CURRENT_BINARY_DIR}/lib") + message (STATUS "Shared libraries will be built in ${CMAKE_CURRENT_BINARY_DIR}/lib") else () - message (STATUS "Shared libraries will not be built (set OPTION_BUILD_SHARED_LIBS=ON to build)") + message (STATUS "Shared libraries will not be built (set OPTION_BUILD_SHARED_LIBS=ON to build)") +endif () + +if (FLTK_BUILD_FORMS) + message (STATUS "The forms library will be built in ${CMAKE_CURRENT_BINARY_DIR}/lib") +else () + message (STATUS "The forms library will not be built (set FLTK_BUILD_FORMS=ON to build)") endif () if (FLTK_BUILD_FLUID) - message (STATUS "FLUID will be built in ${CMAKE_CURRENT_BINARY_DIR}/bin/fluid") + message (STATUS "FLUID will be built in ${CMAKE_CURRENT_BINARY_DIR}/bin/fluid") else () - message (STATUS "FLUID will not be built (set FLTK_BUILD_FLUID=ON to build)") + message (STATUS "FLUID will not be built (set FLTK_BUILD_FLUID=ON to build)") endif () if (FLTK_BUILD_FLTK_OPTIONS) - message (STATUS "fltk-options will be built in ${CMAKE_CURRENT_BINARY_DIR}/bin/fltk-options") + message (STATUS "fltk-options will be built in ${CMAKE_CURRENT_BINARY_DIR}/bin/fltk-options") else () - message (STATUS "fltk-options will not be built (set FLTK_BUILD_FLTK_OPTIONS=ON to build)") + message (STATUS "fltk-options will not be built (set FLTK_BUILD_FLTK_OPTIONS=ON to build)") endif () if (FLTK_BUILD_TEST) - message (STATUS "Test programs will be built in ${CMAKE_CURRENT_BINARY_DIR}/bin/test") + message (STATUS "Test programs will be built in ${CMAKE_CURRENT_BINARY_DIR}/bin/test") endif () if (FLTK_BUILD_EXAMPLES) - message (STATUS "Example programs will be built in ${CMAKE_CURRENT_BINARY_DIR}/bin/examples") + message (STATUS "Example programs will be built in ${CMAKE_CURRENT_BINARY_DIR}/bin/examples") else () - message (STATUS "Example programs will not be built (set FLTK_BUILD_EXAMPLES=ON to build)") + message (STATUS "Example programs will not be built (set FLTK_BUILD_EXAMPLES=ON to build)") endif () message (STATUS "") -- cgit v1.2.3