Make it combilable with Qt 5.13 and older

This commit is contained in:
2022-10-23 09:54:23 +02:00
parent 4fe546f0e5
commit 455c3b2d64
4 changed files with 30 additions and 2 deletions
+9
View File
@@ -42,6 +42,15 @@ set(TENMON_SRC
stretchtoolbar.cpp
)
option(COLOR_MANAGMENT "Enable sRGB framebuffer support for gamma correct images and color profiles support" ON)
if(${Qt5Core_VERSION_STRING} VERSION_LESS "5.14")
set(COLOR_MANAGMENT OFF)
endif(${Qt5Core_VERSION_STRING} VERSION_LESS "5.14")
if(COLOR_MANAGMENT)
add_compile_definitions("COLOR_MANAGMENT")
endif(COLOR_MANAGMENT)
qt5_add_resources(TENMON_SRC resources.qrc)
if(WIN32)
list(APPEND TENMON_SRC icon.rc)