mirror of
https://github.com/fltk/fltk.git
synced 2026-03-23 07:24:03 +08:00
Modern CMake: export shared libraries and fltk-options
This commit is contained in:
@@ -45,6 +45,7 @@ else()
|
||||
endif()
|
||||
|
||||
target_link_libraries(fltk-options PRIVATE fltk::fltk)
|
||||
set_target_properties(fltk-options PROPERTIES EXPORT_NAME options)
|
||||
|
||||
# Add the console app (Windows only)
|
||||
# This is done for all Windows targets, even if cross-compiling.
|
||||
@@ -53,6 +54,7 @@ if(WIN32)
|
||||
list(APPEND TARGETS fltk-options-cmd)
|
||||
add_executable(fltk-options-cmd fltk-options.cxx)
|
||||
target_link_libraries(fltk-options-cmd PRIVATE fltk::fltk)
|
||||
set_target_properties(fltk-options-cmd PROPERTIES EXPORT_NAME options-cmd)
|
||||
endif()
|
||||
|
||||
# Create aliases for all executables,
|
||||
|
||||
Reference in New Issue
Block a user