summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 "