mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-01 19:13:55 -07:00
Add a WITH_QT4 cmake option to force the use of Qt4
This commit is contained in:
parent
052996b7a1
commit
523483bccc
1 changed files with 8 additions and 2 deletions
|
|
@ -89,8 +89,14 @@ IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
|
||||||
ADD_DEFINITIONS("-DSFMT_MEXP=19937")
|
ADD_DEFINITIONS("-DSFMT_MEXP=19937")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
#Find Qt and enable the needed features
|
# Find Qt and enable the needed features
|
||||||
FIND_PACKAGE(Qt5Widgets)
|
# Default is Qt5 unless WITH_QT4 option is enabled
|
||||||
|
option(WITH_QT4 "Force thr use of Qt4 libraries" OFF)
|
||||||
|
|
||||||
|
IF(NOT WITH_QT4)
|
||||||
|
FIND_PACKAGE(Qt5Widgets)
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
IF(Qt5Widgets_FOUND)
|
IF(Qt5Widgets_FOUND)
|
||||||
MESSAGE(STATUS "Found Qt ${Qt5Widgets_VERSION_STRING}")
|
MESSAGE(STATUS "Found Qt ${Qt5Widgets_VERSION_STRING}")
|
||||||
ELSE()
|
ELSE()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue