diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-02-07 18:30:11 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-02-07 18:37:34 +0100 |
| commit | fd5cd809356dc73d2ede5bb2f0db25098771cb8e (patch) | |
| tree | 70c82946eb7d11eba910bb387dc3bcc20abfd42c /CMake/fl_debug_pkg.cmake | |
| parent | 1cf6fdfa8562fafa0566e1008f74ea94f71356e4 (diff) | |
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.
Diffstat (limited to 'CMake/fl_debug_pkg.cmake')
| -rw-r--r-- | CMake/fl_debug_pkg.cmake | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/CMake/fl_debug_pkg.cmake b/CMake/fl_debug_pkg.cmake index 56df4ca37..1eebb63a6 100644 --- a/CMake/fl_debug_pkg.cmake +++ b/CMake/fl_debug_pkg.cmake @@ -41,29 +41,29 @@ macro (fl_debug_pkg PREFIX NAME) message("") message(STATUS "Results of pkg_check_modules(${PREFIX}, ${NAME}):") - fl_debug_var (${PREFIX}_FOUND) - if (${PREFIX}_FOUND) + fl_debug_var(${PREFIX}_FOUND) + if(${PREFIX}_FOUND) - fl_debug_var (${PREFIX}_INCLUDE_DIRS) - fl_debug_var (${PREFIX}_CFLAGS) - fl_debug_var (${PREFIX}_LIBRARIES) - fl_debug_var (${PREFIX}_LINK_LIBRARIES) - fl_debug_var (${PREFIX}_LIBRARY_DIRS) - fl_debug_var (${PREFIX}_LDFLAGS) - fl_debug_var (${PREFIX}_LDFLAGS_OTHER) - fl_debug_var (${PREFIX}_CFLAGS_OTHER) + fl_debug_var(${PREFIX}_INCLUDE_DIRS) + fl_debug_var(${PREFIX}_CFLAGS) + fl_debug_var(${PREFIX}_LIBRARIES) + fl_debug_var(${PREFIX}_LINK_LIBRARIES) + fl_debug_var(${PREFIX}_LIBRARY_DIRS) + fl_debug_var(${PREFIX}_LDFLAGS) + fl_debug_var(${PREFIX}_LDFLAGS_OTHER) + fl_debug_var(${PREFIX}_CFLAGS_OTHER) - fl_debug_var (${PREFIX}_STATIC_INCLUDE_DIRS) - fl_debug_var (${PREFIX}_STATIC_CFLAGS) - fl_debug_var (${PREFIX}_STATIC_LIBRARIES) - fl_debug_var (${PREFIX}_STATIC_LINK_LIBRARIES) - fl_debug_var (${PREFIX}_STATIC_LIBRARY_DIRS) + fl_debug_var(${PREFIX}_STATIC_INCLUDE_DIRS) + fl_debug_var(${PREFIX}_STATIC_CFLAGS) + fl_debug_var(${PREFIX}_STATIC_LIBRARIES) + fl_debug_var(${PREFIX}_STATIC_LINK_LIBRARIES) + fl_debug_var(${PREFIX}_STATIC_LIBRARY_DIRS) - fl_debug_var (${PREFIX}_VERSION) - fl_debug_var (${PREFIX}_PREFIX) - fl_debug_var (${PREFIX}_INCLUDEDIR) - fl_debug_var (${PREFIX}_LIBDIR) + fl_debug_var(${PREFIX}_VERSION) + fl_debug_var(${PREFIX}_PREFIX) + fl_debug_var(${PREFIX}_INCLUDEDIR) + fl_debug_var(${PREFIX}_LIBDIR) - endif () + endif() message("") endmacro (fl_debug_pkg) |
