summaryrefslogtreecommitdiff
path: root/test/CMakeLists.txt
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 /test/CMakeLists.txt
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 'test/CMakeLists.txt')
-rw-r--r--test/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 81d0c42fb..4522c99bc 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -183,7 +183,11 @@ fl_create_example(navigation navigation.cxx fltk::fltk)
fl_create_example(output output.cxx fltk::fltk)
fl_create_example(overlay overlay.cxx fltk::fltk)
fl_create_example(pack pack.cxx fltk::fltk)
-fl_create_example(penpal penpal.cxx fltk::fltk)
+
+if(FLTK_OPTION_PEN_SUPPORT)
+ fl_create_example(penpal penpal.cxx fltk::fltk)
+endif()
+
fl_create_example(pixmap pixmap.cxx fltk::images)
fl_create_example(pixmap_browser pixmap_browser.cxx fltk::images)
fl_create_example(preferences preferences.fl fltk::fltk)