diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-02-23 07:29:27 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-02-23 09:17:20 -0800 |
commit | cae00d9858aa879a095f465946f984f5a4e10b67 (patch) | |
tree | 846df1bbe0b52dce5f21f7561bad61009d3428c2 /CMakeLists.txt | |
parent | ce79b9ffa4062cc3976838cb9a5fedd31f2f3614 (diff) | |
download | subsurface-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.txt | 9 |
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 " |