diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-02-14 17:06:10 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-02-14 17:06:10 +0100 |
| commit | 7992b0b9abbb85504995c9fee46c9484e7948f56 (patch) | |
| tree | 5ecefd2e507ccf3f477072a65b6902cb8f64ab65 /CMake/export.cmake | |
| parent | cd3cb62770956a2c7f96465e0c2424beb2fcbc00 (diff) | |
CMake: fix installation on macOS
fluid and fltk-options are now installed correctly as bundles and as
stand-alone executables side by side in the 'bin' folder relative
to CMAKE_INSTALL_PREFIX.
This works but the installation folders may be changed in the future.
Targets fltk::fluid is now exported correctly so
find_package(FLTK CONFIG ...)
works with both the build folder and an installed version.
Diffstat (limited to 'CMake/export.cmake')
| -rw-r--r-- | CMake/export.cmake | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/CMake/export.cmake b/CMake/export.cmake index 220e6dc2c..fa5816d53 100644 --- a/CMake/export.cmake +++ b/CMake/export.cmake @@ -70,11 +70,16 @@ else() endif() # generate FLTK-Targets.cmake for build directory use +set(export_targets + ${FLTK_LIBRARIES} + ${FLTK_LIBRARIES_SHARED} + ${FLUID_EXPORT} + ${FLTK_OPTIONS_EXPORT} +) +message(STATUS "export.cmake: exporting targets...") +fl_debug_var(export_targets) export(TARGETS - ${FLTK_LIBRARIES} - ${FLTK_LIBRARIES_SHARED} - ${FLUID_EXPORT} - ${FLTK_OPTIONS_EXPORT} + ${export_targets} FILE ${CMAKE_CURRENT_BINARY_DIR}/FLTK-Targets.cmake NAMESPACE |
