mirror of
https://github.com/zealdocs/zeal.git
synced 2024-08-17 10:10:21 +03:00
cmake: Require Qt version >= 5.5.1
This commit is contained in:
parent
ba3c63c9ae
commit
478791a2d8
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user