summaryrefslogtreecommitdiff
path: root/CMake/export.cmake
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2024-02-10 14:19:09 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2024-02-10 14:19:09 +0100
commitf4af40fe5539269b92701f3adb94fb2775f1f457 (patch)
treeb8314f92eb172337565c017ab2340092b3efb12d /CMake/export.cmake
parent809ceea075d0636263de2db7e35735555c151d67 (diff)
Modern CMake: export shared libraries and fltk-options
Diffstat (limited to 'CMake/export.cmake')
-rw-r--r--CMake/export.cmake15
1 files changed, 14 insertions, 1 deletions
diff --git a/CMake/export.cmake b/CMake/export.cmake
index a466e37ae..220e6dc2c 100644
--- a/CMake/export.cmake
+++ b/CMake/export.cmake
@@ -59,9 +59,22 @@ if(0) # Debug
message(STATUS "##############################################################")
endif()
+# set fltk-options export names (built or not, Windows)
+if(FLTK_BUILD_FLTK_OPTIONS)
+ set(FLTK_OPTIONS_EXPORT fltk-options)
+ if(WIN32)
+ list(APPEND FLTK_OPTIONS_EXPORT fltk-options-cmd)
+ endif()
+else()
+ set(FLTK_OPTIONS_EXPORT)
+endif()
+
# generate FLTK-Targets.cmake for build directory use
export(TARGETS
- ${FLUID_EXPORT} ${FLTK_LIBRARIES}
+ ${FLTK_LIBRARIES}
+ ${FLTK_LIBRARIES_SHARED}
+ ${FLUID_EXPORT}
+ ${FLTK_OPTIONS_EXPORT}
FILE
${CMAKE_CURRENT_BINARY_DIR}/FLTK-Targets.cmake
NAMESPACE