[libkmap] /: The file FindMarbleWidget.cmake was provided by kdeedu/cmake/modules which is no more.

Michael Jansen kde at michael-jansen.biz
Wed Apr 6 15:25:50 CEST 2011


Git commit 0b63454ffd1e113340c3a52f90b706f0568eea5f by Michael Jansen.
Committed on 06/04/2011 at 15:28.
Pushed by mjansen into branch 'master'.

The file FindMarbleWidget.cmake was provided by kdeedu/cmake/modules which is no more.

Anyway it is not a good idea to install your own FindXYZ.cmake file.

CCMAIL: kde-buildsystem at kde.org

M  +4    -0    CMakeLists.txt     
A  +42   -0    cmake/modules/FindMarbleWidget.cmake         [License: UNKNOWN]  *

The files marked with a * at the end have a non valid license. Please read: http://techbase.kde.org/Policies/Licensing_Policy and use the headers which are listed at that page.


http://commits.kde.org/libkmap/0b63454ffd1e113340c3a52f90b706f0568eea5f

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8e3965f..5e755a1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -29,9 +29,13 @@ PROJECT(libkmap)
 MESSAGE(STATUS "----------------------------------------------------------------------------------")
 MESSAGE(STATUS "Starting CMake configuration for: libkmap")
 
+# Always do this BEFORE calling find_package(KDE4)
+SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
+
 FIND_PACKAGE(Qt4 4.6.0 REQUIRED)
 FIND_PACKAGE(KDE4 REQUIRED)
 
+
 INCLUDE(KDE4Defaults)
 INCLUDE(MacroLibrary)
 INCLUDE(MacroOptionalAddSubdirectory)
diff --git a/cmake/modules/FindMarbleWidget.cmake b/cmake/modules/FindMarbleWidget.cmake
new file mode 100644
index 0000000..8c515cd
--- /dev/null
+++ b/cmake/modules/FindMarbleWidget.cmake
@@ -0,0 +1,42 @@
+# - Try to find marblewidget library
+# Once done this will define
+#
+# MARBLEWIDGET_FOUND - system has MARBLEWIDGET library
+# LIBMARBLEWIDGET_INCLUDE_DIR - the LIBMARBLEWIDGET include directory
+# LIBMARBLEWIDGET_LIBRARY - the marblewidget library
+#
+# copyright 2008 by Patrick Spendrin <ps_ml at gmx.de>
+# use this file as you like
+#
+
+if(LIBMARBLEWIDGET_INCLUDE_DIR AND LIBMARBLEWIDGET_LIBRARY)
+
+# Already in cache
+set(MARBLEWIDGET_FOUND TRUE)
+
+else(LIBMARBLEWIDGET_INCLUDE_DIR AND LIBMARBLEWIDGET_LIBRARY)
+find_path(LIBMARBLEWIDGET_INCLUDE_DIR Quaternion.h PATH_SUFFIXES marble)
+
+if (WIN32 AND CMAKE_BUILD_TYPE_TOLOWER MATCHES debug)
+set (LIBRARY_NAME marblewidgetd)
+else(WIN32 AND CMAKE_BUILD_TYPE_TOLOWER MATCHES debug)
+set (LIBRARY_NAME marblewidget)
+endif (WIN32 AND CMAKE_BUILD_TYPE_TOLOWER MATCHES debug)
+find_library(LIBMARBLEWIDGET_LIBRARY ${LIBRARY_NAME})
+
+if(LIBMARBLEWIDGET_INCLUDE_DIR AND LIBMARBLEWIDGET_LIBRARY)
+set(MARBLEWIDGET_FOUND TRUE)
+endif(LIBMARBLEWIDGET_INCLUDE_DIR AND LIBMARBLEWIDGET_LIBRARY)
+
+if(MARBLEWIDGET_FOUND)
+if (NOT MARBLEWIDGET_FIND_QUIETLY)
+message(STATUS "Found Marble: ${LIBMARBLEWIDGET_LIBRARY}")
+endif (NOT MARBLEWIDGET_FIND_QUIETLY)
+else(MARBLEWIDGET_FOUND)
+if(MARBLEWIDGET_FIND_REQUIRED)
+message(FATAL_ERROR "Could NOT find any Marble library")
+endif(MARBLEWIDGET_FIND_REQUIRED)
+endif(MARBLEWIDGET_FOUND)
+
+mark_as_advanced(LIBMARBLEWIDGET_INCLUDE_DIR LIBMARBLEWIDGET_LIBRARY)
+endif(LIBMARBLEWIDGET_INCLUDE_DIR AND LIBMARBLEWIDGET_LIBRARY)


More information about the Kde-buildsystem mailing list