Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
523483bc
Commit
523483bc
authored
Jun 30, 2014
by
Fabio Bas
Browse files
Add a WITH_QT4 cmake option to force the use of Qt4
parent
052996b7
Changes
1
Show whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
523483bc
...
...
@@ -89,8 +89,14 @@ IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
ADD_DEFINITIONS
(
"-DSFMT_MEXP=19937"
)
ENDIF
()
#Find Qt and enable the needed features
FIND_PACKAGE
(
Qt5Widgets
)
# Find Qt and enable the needed features
# 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
)
MESSAGE
(
STATUS
"Found Qt
${
Qt5Widgets_VERSION_STRING
}
"
)
ELSE
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment