add QT Config

This commit is contained in:
hyzboy 2020-06-10 22:04:31 +08:00
parent 5e8a223255
commit 7d35df757f

View File

@ -1,4 +1,4 @@
macro(fix_project_version) macro(fix_project_version)
if (NOT PROJECT_VERSION_PATCH) if (NOT PROJECT_VERSION_PATCH)
set(PROJECT_VERSION_PATCH 0) set(PROJECT_VERSION_PATCH 0)
endif() endif()
@ -75,3 +75,11 @@ endmacro()
init_os_bundle() init_os_bundle()
init_qt() init_qt()
fix_win_compiler() fix_win_compiler()
set(QT_MIN_VERSION "5.14.0")
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Core Gui Widgets)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Set additional project information
set(COMPANY "hyzgame.com")
set(COPYRIGHT "Copyright (c) 1997-2020 hyzgame.com. All rights reserved.")