mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
No need to specify Marble dir anymore
We are already looking for the default directory. *if* cmake doesn't find Marble automatically, the user needs to specify -DMARBLE_INCLUDE_DIR and -DMARBLE_LIBRARIES Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f13e72c306
commit
2e05dbb791
1 changed files with 2 additions and 9 deletions
|
@ -53,15 +53,8 @@ ELSE()
|
||||||
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -ldivecomputer)
|
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -ldivecomputer)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
IF(NOT DEFINED LIBMARBLEDEVEL)
|
FIND_PACKAGE(Marble REQUIRED)
|
||||||
FIND_PACKAGE(Marble REQUIRED)
|
include_directories(${MARBLE_INCLUDE_DIR})
|
||||||
include_directories(${MARBLE_INCLUDE_DIR})
|
|
||||||
link_directories(${MARBLE_LIB_DIR})
|
|
||||||
ELSE()
|
|
||||||
include_directories(${LIBMARBLEDEVEL}/include)
|
|
||||||
link_directories(${LIBMARBLEDEVEL}/lib)
|
|
||||||
SET(MARBLE_LIBRARIES -L${LIBMARBLEDEVEL}/lib -lssrfmarblewidget)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
# handle out of tree build correctly
|
# handle out of tree build correctly
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue