summaryrefslogtreecommitdiff
path: root/CMake/options.cmake
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2026-01-08 21:22:03 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2026-01-08 21:22:03 +0100
commit4908dfd72a343ee7c35bc55a55ad860052e21fae (patch)
treefc8e9a7af14ce3b70648870593a4724a14a4ff66 /CMake/options.cmake
parent7fae181d9503c436a486c6810c07a3320a27d233 (diff)
Add CMake option FLTK_OPTION_PEN_SUPPORT (default: ON)
This option can be used to disable pen/tablet support if there are build problems on a particular platform or build system (e.g. MinGW) so users can continue to build FLTK 1.5. Users can also choose to disable pen support if they don't need it.
Diffstat (limited to 'CMake/options.cmake')
-rw-r--r--CMake/options.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/CMake/options.cmake b/CMake/options.cmake
index 937bc29f9..27cffd038 100644
--- a/CMake/options.cmake
+++ b/CMake/options.cmake
@@ -468,6 +468,7 @@ option(FLTK_BUILD_SHARED_LIBS
option(FLTK_OPTION_PRINT_SUPPORT "allow print support" ON)
option(FLTK_OPTION_FILESYSTEM_SUPPORT "allow file system support" ON)
+option(FLTK_OPTION_PEN_SUPPORT "include Pen/Tablet support" ON)
option(FLTK_BUILD_FORMS "Build forms compatibility library" OFF)
option(FLTK_BUILD_FLUID "Build FLUID" ON)
@@ -481,12 +482,21 @@ else()
option(FLTK_BUILD_TEST "Build test/demo programs" OFF)
endif()
+
+# set variables to generate config.h or fl_config.h
+
if(FLTK_BUILD_FORMS)
set(FLTK_HAVE_FORMS 1)
else()
set(FLTK_HAVE_FORMS 0)
endif()
+if(FLTK_OPTION_PEN_SUPPORT)
+ set(FLTK_HAVE_PEN_SUPPORT 1)
+else()
+ set(FLTK_HAVE_PEN_SUPPORT 0)
+endif()
+
#######################################################################
if(DOXYGEN_FOUND)
option(FLTK_BUILD_HTML_DOCS "build html docs" ON)