summaryrefslogtreecommitdiffstats
path: root/marbledata/FindMarble.cmake
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-04-14 14:21:01 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-04-14 11:49:49 -0700
commit907d8b8fbbb0bc07ccc4c4b4d1374f764c5d8dae (patch)
treefd1600254012ecd9a31917ba99c538f3b2e8ee42 /marbledata/FindMarble.cmake
parent3abcde9a2abade0ce576976b6dce869e8aa28601 (diff)
downloadsubsurface-907d8b8fbbb0bc07ccc4c4b4d1374f764c5d8dae.tar.gz
Add a CMake based buildsystem for the tests.
This commit adds a CMake based buildsystem for the tests, it separated the subsurface sources in small libraries to make testing easyer ( subsurface core, subsurface ui, subsurface profile, etc. ) There's no test yet, this however produces a compiled and executable binary *on linux*. This file shouldn't be needed on any other platform as this is not the main build system, but the test build system. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'marbledata/FindMarble.cmake')
-rw-r--r--marbledata/FindMarble.cmake20
1 files changed, 20 insertions, 0 deletions
diff --git a/marbledata/FindMarble.cmake b/marbledata/FindMarble.cmake
new file mode 100644
index 000000000..4917c995e
--- /dev/null
+++ b/marbledata/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 )