cmake: Require Qt version >= 5.5.1

This commit is contained in:
Oleg Shparber 2018-01-07 17:10:44 +02:00
parent ba3c63c9ae
commit 478791a2d8
2 changed files with 6 additions and 0 deletions

View File

@ -15,5 +15,7 @@ string(TIMESTAMP PROJECT_COPYRIGHT "© 2015-%Y Oleg Shparber" UTC)
set(PROJECT_DESCRIPTION "A simple documentation browser.")
set(PROJECT_URL "https://zealdocs.org")
set(QT_MINIMUM_VERSION 5.5.1)
add_subdirectory(assets)
add_subdirectory(src)

View File

@ -19,6 +19,10 @@ add_executable(App WIN32
target_link_libraries(App Core Util)
find_package(Qt5 COMPONENTS Widgets REQUIRED)
if (Qt5Widgets_VERSION VERSION_LESS QT_MINIMUM_VERSION)
message(FATAL_ERROR "Qt version >= ${QT_MINIMUM_VERSION} is required.")
endif()
target_link_libraries(App Qt5::Widgets)
set_target_properties(App PROPERTIES