find Qt5 minor version

work/m_layershell
Michail Vourlakos 3 years ago
parent 74d5b567ed
commit 51f166bf51

@ -45,9 +45,15 @@ if(X11_FOUND AND XCB_XCB_FOUND)
set(HAVE_X11 ON)
endif()
string(REGEX MATCH "\\.([^]]+)\\." QT5_VERSION_MINOR ${Qt5Gui_VERSION})
string(REGEX REPLACE "\\." "" QT5_VERSION_MINOR ${QT5_VERSION_MINOR})
string(REGEX MATCH "\\.([^]]+)\\." KF5_VERSION_MINOR ${KF5_VERSION})
string(REGEX REPLACE "\\." "" KF5_VERSION_MINOR ${KF5_VERSION_MINOR})
message(STATUS "Qt5 VERSION : ${Qt5Gui_VERSION}")
message(STATUS "Qt5 VERSION MINOR : ${QT5_VERSION_MINOR}")
message(STATUS "KF5 VERSION : ${KF5_VERSION}")
message(STATUS "KF5 VERSION MINOR : ${KF5_VERSION_MINOR}")

@ -5,6 +5,8 @@
#cmakedefine KF5_VERSION_MINOR @KF5_VERSION_MINOR@
#cmakedefine QT5_VERSION_MINOR @QT5_VERSION_MINOR@
#cmakedefine VERSION "@VERSION@"
#cmakedefine WEBSITE "@WEBSITE@"

Loading…
Cancel
Save