From 9d10d08ed0908a3295a6653c48b3e31a3f63fd6f Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Tue, 18 Jul 2017 20:15:02 +0000 Subject: [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 --- CMake/options.cmake | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CMake/options.cmake b/CMake/options.cmake index 33c24bc29..fcdfe265f 100644 --- a/CMake/options.cmake +++ b/CMake/options.cmake @@ -47,6 +47,17 @@ if(UNIX) list(APPEND FLTK_LDLIBS -lm) 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) -- cgit v1.2.3