mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Add LIBMARBLEDEVEL support to cmake
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ce79b9ffa4
commit
cae00d9858
1 changed files with 7 additions and 2 deletions
|
@ -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 "
|
||||
|
|
Loading…
Reference in a new issue