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. --- README.abi-version.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'README.abi-version.txt') diff --git a/README.abi-version.txt b/README.abi-version.txt index 7ccda33c7..b87578725 100644 --- a/README.abi-version.txt +++ b/README.abi-version.txt @@ -72,13 +72,13 @@ the version number. ABI version, use ccmake, cmake-gui, or run cmake with the following command: - cmake -D OPTION_ABI_VERSION:STRING=10401 /path/to/fltk + cmake -D FLTK_ABI_VERSION:STRING=10401 /path/to/fltk Then execute make - You can define OPTION_ABI_VERSION to the required version number using + You can define FLTK_ABI_VERSION to the required version number using one of the graphical CMake tools. For more information on how to use CMake with FLTK see README.CMake.txt. @@ -100,8 +100,8 @@ the version number. ... *FIXME* [Add documentation how to use CMake with FLTK]. - Use CMake option OPTION_ABI_VERSION:STRING=10401 with the command line - or set OPTION_ABI_VERSION with one of the CMake GUI programs. + Use CMake option FLTK_ABI_VERSION:STRING=10401 with the command line + or set FLTK_ABI_VERSION with one of the CMake GUI programs. Then start the build process in the IDE solution of your choice. This will run the build with the defined ABI version. -- cgit v1.2.3