diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-02-12 16:33:40 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-02-12 16:53:20 +0100 |
| commit | bddcecd28ad2046ab9b13617a04cb4831510da88 (patch) | |
| tree | b3463e1b99f2f59540e407fa3d56c3349260df75 /fluid/CMakeLists.txt | |
| parent | cf551ddf5a1fb72f56ca31187acb0bbf1951cdb6 (diff) | |
CMake: set FLTK_VERSION and FLTK_FLUID_EXECUTABLE in the cache
This is useful if FLTK is built as a subproject, for instance by
using FetchContent.
Diffstat (limited to 'fluid/CMakeLists.txt')
| -rw-r--r-- | fluid/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fluid/CMakeLists.txt b/fluid/CMakeLists.txt index 28b5db745..66f16a99f 100644 --- a/fluid/CMakeLists.txt +++ b/fluid/CMakeLists.txt @@ -177,8 +177,13 @@ if(WIN32) list(APPEND TARGETS fluid-cmd) add_executable(fluid-cmd fluid.cxx) target_link_libraries(fluid-cmd PRIVATE fluid-lib) + set(FLTK_FLUID_EXECUTABLE fltk::fluid-cmd) +else() + set(FLTK_FLUID_EXECUTABLE fltk::fluid) endif() +set(FLTK_FLUID_EXECUTABLE "${FLTK_FLUID_EXECUTABLE}" PARENT_SCOPE) + # Create aliases for all targets foreach(tgt ${TARGETS}) |
