mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
This is the correct way to deal with CMake Modules (or at least, the default way). All our custom CMakeFiles will be here. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
20 lines
720 B
CMake
20 lines
720 B
CMake
# - Try to find the Marble Library
|
|
# Once done this will define
|
|
#
|
|
# MARBLE_FOUND - system has Marble
|
|
# MARBLE_INCLUDE_DIR - the Marble include directory
|
|
# MARBLE_LIBRARIES
|
|
# Redistribution and use is allowed according to the terms of the BSD license.
|
|
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
|
#
|
|
|
|
IF ( MARBLE_INCLUDE_DIR AND MARBLE_LIBRARIES )
|
|
# in cache already
|
|
SET( MARBLE_FIND_QUIETLY TRUE )
|
|
ENDIF ( MARBLE_INCLUDE_DIR AND MARBLE_LIBRARIES )
|
|
|
|
FIND_PATH( MARBLE_INCLUDE_DIR NAMES marble/MarbleModel.h )
|
|
FIND_LIBRARY( MARBLE_LIBRARIES NAMES marblewidget )
|
|
|
|
INCLUDE( FindPackageHandleStandardArgs )
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS( marble DEFAULT_MSG MARBLE_INCLUDE_DIR MARBLE_LIBRARIES )
|