From fd5cd809356dc73d2ede5bb2f0db25098771cb8e Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Wed, 7 Feb 2024 18:30:11 +0100 Subject: Introduce "Modern CMake" in FLTK This is a big commit and there are too many changes to list them all. The main changes are: - rename all CMake build options to 'FLTK_*' - export library targets with namespace (prefix) 'fltk::' - standardize shared library target names with suffix '-shared' - set public build properties on libraries for consumers - document library names and aliases in README.CMake.txt - document changes in "Migrating Code from FLTK 1.3 to 1.4" - partial backwards compatibility for old user projects Included but not directly related changes: - fix Windows (Visual Studio) DLL build - add CMake function fl_debug_target() to show target properties - don't build test programs if FLTK is a subproject - internal: reformat CMake code: remove space before '(' Thanks to Matthias and Manolo for their help, testing, and feeback. --- documentation/README.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'documentation/README.txt') diff --git a/documentation/README.txt b/documentation/README.txt index 848ec66f1..bcd9459b9 100644 --- a/documentation/README.txt +++ b/documentation/README.txt @@ -106,15 +106,15 @@ required software packages (doxygen, LaTeX) installed. You can always leave them ON because the documentation is not built automatically (it is excluded from the default target "ALL"). - - OPTION_BUILD_HTML_DOCUMENTATION:BOOL=ON target: html - - OPTION_BUILD_PDF_DOCUMENTATION:BOOL=ON target: pdf + - FLTK_BUILD_HTML_DOCS:BOOL=ON target: html + - FLTK_BUILD_PDF_DOCS:BOOL=ON target: pdf The following two options default to OFF and can be switched ON. They are only used when installing the software ('make install') and the corresponding build options are ON. - - OPTION_INSTALL_HTML_DOCUMENTATION:BOOL=OFF - - OPTION_INSTALL_PDF_DOCUMENTATION:BOOL=OFF + - FLTK_INSTALL_HTML_DOCS:BOOL=OFF + - FLTK_INSTALL_PDF_DOCS:BOOL=OFF If you switch one or both of the first two options ON, then the build targets 'html' and/or 'pdf' are generated, respectively. Target 'docs' -- cgit v1.2.3