summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-23 07:29:27 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-23 09:17:20 -0800
commitcae00d9858aa879a095f465946f984f5a4e10b67 (patch)
tree846df1bbe0b52dce5f21f7561bad61009d3428c2 /CMakeLists.txt
parentce79b9ffa4062cc3976838cb9a5fedd31f2f3614 (diff)
downloadsubsurface-cae00d9858aa879a095f465946f984f5a4e10b67.tar.gz
Add LIBMARBLEDEVEL support to cmake
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 16b8b9f52..96a681c20 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -51,8 +51,13 @@ FIND_PACKAGE(Qt5Test REQUIRED)
SET(QT_LIBRARIES Qt5::Core Qt5::Concurrent Qt5::Widgets Qt5::Network Qt5::WebKitWidgets Qt5::PrintSupport Qt5::Svg)
SET(QT_TEST_LIBRARIES ${QT_LIBRARIES} Qt5::Test)
-FIND_PACKAGE(Marble REQUIRED)
-INCLUDE_DIRECTORIES(${MARBLE_INCLUDE_DIR})
+IF(LIBMARBLEDEVEL STREQUAL "")
+ FIND_PACKAGE(Marble REQUIRED)
+ INCLUDE_DIRECTORIES(${MARBLE_INCLUDE_DIR})
+ELSE()
+ INCLUDE_DIRECTORIES(${LIBMARBLEDEVEL}/include)
+ SET(MARBLE_LIBRARIES ${LIBMARBLEDEVEL}/lib/libssrfmarblewidget.so)
+ENDIF()
# Generate the ssrf-config.h every 'make'
FILE(WRITE ${CMAKE_BINARY_DIR}/version.h.in "