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)