diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-12-20 16:56:29 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-12-20 17:33:37 +0100 |
| commit | 5df5daf78e135e0c8371012ffe56df5cae357755 (patch) | |
| tree | afd619b32d1f35b949f07b9dd35f0184400a1f93 /test/CMakeLists.txt | |
| parent | 9023648e6c182a4142894b3e6c1b309b699b0629 (diff) | |
Make the 'Forms' compatibility library 'fltk_forms' optional
This library is no longer needed in FLTK itself. There is only one
demo program (test/forms.cxx) that uses it if it is built. The demo
program displays a message if fltk_forms is not available.
The default is 'enabled' for backwards compatibility but this may
be changed to 'disabled' in a future version.
Diffstat (limited to 'test/CMakeLists.txt')
| -rw-r--r-- | test/CMakeLists.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index be40319ce..7fea98adc 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -75,6 +75,14 @@ else () set (GLDEMO_SHARED fltk_SHARED) endif () +# Similar approach for the 'forms' demo (shared lib not supported) + +if (FLTK_BUILD_FORMS) + set (FORMS_LIBS fltk_forms) # implies 'fltk' as well +else () + set (FORMS_LIBS fltk) +endif () + ####################################################################### CREATE_EXAMPLE (adjuster adjuster.cxx fltk) @@ -106,7 +114,7 @@ CREATE_EXAMPLE (flex_demo flex_demo.cxx fltk) CREATE_EXAMPLE (flex_login flex_login.cxx fltk) CREATE_EXAMPLE (fltk-versions fltk-versions.cxx fltk) CREATE_EXAMPLE (fonts fonts.cxx fltk) -CREATE_EXAMPLE (forms forms.cxx "fltk_forms;fltk") +CREATE_EXAMPLE (forms forms.cxx "${FORMS_LIBS}") CREATE_EXAMPLE (fullscreen fullscreen.cxx "${GLDEMO_LIBS}") CREATE_EXAMPLE (grid_alignment grid_alignment.cxx fltk) CREATE_EXAMPLE (grid_buttons grid_buttons.cxx fltk) |
