summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2017-07-18 20:15:02 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2017-07-18 20:15:02 +0000
commit9d10d08ed0908a3295a6653c48b3e31a3f63fd6f (patch)
tree6da43edbf83f323019591b6fe40ce5f4318d617d /CMake
parent7dda366286f9258941daf7d67d1868732dcad92c (diff)
[CMake] Add an option to use High-DPI support (Windows only).
This option can be used with CMake to configure the experimental high-DPI support under Windows. The option may be removed once high-DPI support under Windows is complete. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12338 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'CMake')
-rw-r--r--CMake/options.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/CMake/options.cmake b/CMake/options.cmake
index 33c24bc29..fcdfe265f 100644
--- a/CMake/options.cmake
+++ b/CMake/options.cmake
@@ -48,6 +48,17 @@ if(UNIX)
endif(UNIX)
#######################################################################
+## Add a TEMPORARY OPTION to enable high-DPI support under Windows.
+## May be removed once high-DPI support under Windows is complete.
+#######################################################################
+if (WIN32)
+ option(OPTION_HIDPI "build with experimental high-DPI support" OFF)
+ if (OPTION_HIDPI)
+ add_definitions("-DFLTK_HIDPI_SUPPORT")
+ endif (OPTION_HIDPI)
+endif (WIN32)
+
+#######################################################################
if(APPLE)
option(OPTION_APPLE_X11 "use X11" OFF)
option(OPTION_APPLE_SDL "use SDL" OFF)