mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 20:53:23 +00:00
Search for Marble in the default build folder
Now we search for Marble in the default build folder, too, which is CMAKE_CURRENT_SOURCE_DIR/.. Also look for both regular Marble and for our Subsurface branch of Marble (which uses a different library name). Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
057231701e
commit
f13e72c306
1 changed files with 20 additions and 3 deletions
|
@ -8,13 +8,30 @@
|
||||||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# in cache already
|
||||||
IF ( MARBLE_INCLUDE_DIR AND MARBLE_LIBRARIES )
|
IF ( MARBLE_INCLUDE_DIR AND MARBLE_LIBRARIES )
|
||||||
# in cache already
|
|
||||||
SET( MARBLE_FIND_QUIETLY TRUE )
|
SET( MARBLE_FIND_QUIETLY TRUE )
|
||||||
ENDIF ( MARBLE_INCLUDE_DIR AND MARBLE_LIBRARIES )
|
ENDIF ( MARBLE_INCLUDE_DIR AND MARBLE_LIBRARIES )
|
||||||
|
|
||||||
FIND_PATH( MARBLE_INCLUDE_DIR NAMES marble/MarbleModel.h )
|
FIND_PATH( MARBLE_INCLUDE_DIR
|
||||||
FIND_LIBRARY( MARBLE_LIBRARIES NAMES marblewidget )
|
NAMES marble/MarbleModel.h
|
||||||
|
HINTS
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/../marble/src/lib
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/../marble-source/src/lib
|
||||||
|
/usr/local/include
|
||||||
|
/usr/include
|
||||||
|
)
|
||||||
|
|
||||||
|
FIND_LIBRARY( MARBLE_LIBRARIES
|
||||||
|
NAMES
|
||||||
|
ssrfmarblewidget
|
||||||
|
marblewidget
|
||||||
|
HINTS
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/../marble
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/../marble-source
|
||||||
|
/usr/local/include
|
||||||
|
/usr/include
|
||||||
|
)
|
||||||
|
|
||||||
INCLUDE( FindPackageHandleStandardArgs )
|
INCLUDE( FindPackageHandleStandardArgs )
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS( marble DEFAULT_MSG MARBLE_INCLUDE_DIR MARBLE_LIBRARIES )
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS( marble DEFAULT_MSG MARBLE_INCLUDE_DIR MARBLE_LIBRARIES )
|
||||||
|
|
Loading…
Add table
Reference in a new issue