Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show First 20 Lines • Show All 333 Lines • ▼ Show 20 Line(s) | |||||
334 | fmt.setColorSpace(QSurfaceFormat::scRGBColorSpace); | 334 | fmt.setColorSpace(QSurfaceFormat::scRGBColorSpace); | ||
335 | fmt.setColorSpace(QSurfaceFormat::bt2020PQColorSpace); | 335 | fmt.setColorSpace(QSurfaceFormat::bt2020PQColorSpace); | ||
336 | } | 336 | } | ||
337 | " | 337 | " | ||
338 | HAVE_HDR | 338 | HAVE_HDR | ||
339 | ) | 339 | ) | ||
340 | configure_file(config-hdr.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-hdr.h) | 340 | configure_file(config-hdr.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-hdr.h) | ||
341 | 341 | | |||
342 | if (WIN32) | ||||
343 | CHECK_CXX_SOURCE_COMPILES(" | ||||
344 | #include <QtPlatformHeaders/QWindowsWindowFunctions> | ||||
345 | int main(int argc, char *argv[]) { | ||||
346 | QWindowsWindowFunctions::setHasBorderInFullScreenDefault(true); | ||||
347 | } | ||||
348 | " | ||||
349 | HAVE_SET_HAS_BORDER_IN_FULL_SCREEN_DEFAULT | ||||
350 | ) | ||||
351 | configure_file(config-set-has-border-in-full-screen-default.h.in ${CMAKE_CURRENT_BINARY_DIR}/config-set-has-border-in-full-screen-default.h) | ||||
352 | endif (WIN32) | ||||
353 | | ||||
342 | unset(CMAKE_REQUIRED_INCLUDES) | 354 | unset(CMAKE_REQUIRED_INCLUDES) | ||
343 | unset(CMAKE_REQUIRED_LIBRARIES) | 355 | unset(CMAKE_REQUIRED_LIBRARIES) | ||
344 | 356 | | |||
345 | 357 | | |||
346 | include (MacroAddFileDependencies) | 358 | include (MacroAddFileDependencies) | ||
347 | include (MacroBoolTo01) | 359 | include (MacroBoolTo01) | ||
348 | include (MacroEnsureOutOfSourceBuild) | 360 | include (MacroEnsureOutOfSourceBuild) | ||
349 | macro_ensure_out_of_source_build("Compiling Krita inside the source directory is not possible. Please refer to the build instruction https://community.kde.org/Krita#Build_Instructions") | 361 | macro_ensure_out_of_source_build("Compiling Krita inside the source directory is not possible. Please refer to the build instruction https://community.kde.org/Krita#Build_Instructions") | ||
▲ Show 20 Lines • Show All 465 Lines • Show Last 20 Lines |