summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2015-07-01 17:08:34 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-01 08:59:50 -0700
commiteda0190e2ad0b4e7a813d559f022d9f0b8f41831 (patch)
tree1b55b33f5a0aadd6ab86c71923468af847c5ba03
parent82b51e802147392438e51801766baeaf630218af (diff)
downloadsubsurface-eda0190e2ad0b4e7a813d559f022d9f0b8f41831.tar.gz
Group QT-quick options into one block
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--CMakeLists.txt10
1 files changed, 4 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0190cb482..3fe2d8702 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -150,13 +150,11 @@ endif()
# configure Qt.
if(SUBSURFACE_MOBILE)
- set(QT_QUICK Quick)
-endif()
-find_package(Qt5 REQUIRED COMPONENTS Core Concurrent Widgets Network ${WEBKIT_PKG} PrintSupport Svg Test LinguistTools ${QT_QUICK})
-set(QT_LIBRARIES Qt5::Core Qt5::Concurrent Qt5::Widgets Qt5::Network ${WEBKIT_LIB} Qt5::PrintSupport Qt5::Svg)
-if(SUBSURFACE_MOBILE)
- set(QT_LIBRARIES ${QT_LIBRARIES} Qt5::Quick)
+ set(QT_QUICK_PKG Quick)
+ set(QT_QUICK_LIB Qt5::Quick)
endif()
+find_package(Qt5 REQUIRED COMPONENTS Core Concurrent Widgets Network ${WEBKIT_PKG} PrintSupport Svg Test LinguistTools ${QT_QUICK_PKG})
+set(QT_LIBRARIES Qt5::Core Qt5::Concurrent Qt5::Widgets Qt5::Network ${WEBKIT_LIB} Qt5::PrintSupport Qt5::Svg ${QT_QUICK_LIB})
set(QT_TEST_LIBRARIES ${QT_LIBRARIES} Qt5::Test)
# Generate the ssrf-config.h every 'make'