diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-04-07 16:44:49 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-04-07 16:06:54 -0700 |
commit | e56580229bd60e1363344fc4fb7439550f7392a4 (patch) | |
tree | 2b124bdc730ea03d24440143ad4c04c3d44dee03 /cmake/Modules/FindMarble.cmake | |
parent | 85fbd1737c8bd5cb4a734357dc23008f311d90bb (diff) | |
download | subsurface-e56580229bd60e1363344fc4fb7439550f7392a4.tar.gz |
FindMarble moved to cmake/Modules
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>
Diffstat (limited to 'cmake/Modules/FindMarble.cmake')
-rw-r--r-- | cmake/Modules/FindMarble.cmake | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/cmake/Modules/FindMarble.cmake b/cmake/Modules/FindMarble.cmake new file mode 100644 index 000000000..4917c995e --- /dev/null +++ b/cmake/Modules/FindMarble.cmake @@ -0,0 +1,20 @@ +# - 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 ) |