diff options
| author | Matthias Melcher <github@matthiasm.com> | 2022-11-13 20:16:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-13 20:16:54 +0100 |
| commit | edf7510dda6b62905920fbf3a2fe01abbeab920e (patch) | |
| tree | f8af26ccb91f0e07265d713b64ec32eb7ad151cf /CMakeLists.txt | |
| parent | 57f61cf5a06f382a5fc6df60a5019d06f10df477 (diff) | |
Make building Fluid optional. (#539)
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9fb8cac43..2fcac4269 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -111,7 +111,9 @@ add_subdirectory(src) # build fluid ####################################################################### -add_subdirectory(fluid) +if (FLTK_BUILD_FLUID) + add_subdirectory (fluid) +endif (FLTK_BUILD_FLUID) ####################################################################### # variables shared by export and install @@ -210,6 +212,12 @@ else () message (STATUS "Shared libraries will not be built (set OPTION_BUILD_SHARED_LIBS=ON to build)") endif () +if (FLTK_BUILD_FLUID) + message (STATUS "FLUID will be built in ${CMAKE_CURRENT_BINARY_DIR}/bin/fluid") + else () + message (STATUS "FLUID will not be built (set FLTK_BUILD_FLUID=ON to build)") + endif () + if (FLTK_BUILD_TEST) message (STATUS "Test programs will be built in ${CMAKE_CURRENT_BINARY_DIR}/bin/test") endif () |
