aboutsummaryrefslogtreecommitdiff
path: root/attic/modules/FindSharedDesktopOntologies.cmake
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2011-06-30 17:36:45 -0400
committerAllen Winter <allen.winter@kdab.com>2011-06-30 17:36:45 -0400
commitd2b2c90a06bf1f4a21df196430d1f95856900410 (patch)
treeaba9d2a48d7b2ac1e960e1b68218394524c7e6a8 /attic/modules/FindSharedDesktopOntologies.cmake
parente15ffacc69242c89107afbfda6f8ece9f2b56633 (diff)
downloadextra-cmake-modules-d2b2c90a06bf1f4a21df196430d1f95856900410.tar.gz
extra-cmake-modules-d2b2c90a06bf1f4a21df196430d1f95856900410.tar.bz2
Move the modules, modules-test and systeminfo subdirs into 'attic'
Diffstat (limited to 'attic/modules/FindSharedDesktopOntologies.cmake')
-rw-r--r--attic/modules/FindSharedDesktopOntologies.cmake42
1 files changed, 42 insertions, 0 deletions
diff --git a/attic/modules/FindSharedDesktopOntologies.cmake b/attic/modules/FindSharedDesktopOntologies.cmake
new file mode 100644
index 00000000..99b70362
--- /dev/null
+++ b/attic/modules/FindSharedDesktopOntologies.cmake
@@ -0,0 +1,42 @@
+# - Try to find shared-desktop-ontologies
+# The shared-desktop-ontologies package is a direct dependancy of the Nepomuk
+# semantic desktop system and provides all necessary ontology files like
+# RDF, RDFS, NRL, or NIE.
+#
+# The package is created by the OSCAF project (http://oscaf.sourceforge.net).
+#
+# Once done this will define
+#
+# SHAREDDESKTOPONTOLOGIES_FOUND - system has shared-desktop-ontologies
+# SHAREDDESKTOPONTOLOGIES_ROOT_DIR - Folder where the ontologies are stored
+# SHAREDDESKTOPONTOLOGIES_VERSION_MAJOR - The major version number, i.e. '1' in '1.2'
+# SHAREDDESKTOPONTOLOGIES_VERSION_MINOR - The minor version number, i.e. '2' in '1.2'
+# SHAREDDESKTOPONTOLOGIES_VERSION - The complete version string, i.e. '1.2'
+#
+
+# Copyright (c) 2009, Sebastian Trueg, <trueg@kde.org>
+#
+# Redistribution and use is allowed according to the terms of the BSD license.
+# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
+
+
+# First try the SharedDesktopOntologiesConfig.cmake from shared-desktop-ontologies 0.2 and newer
+
+# This is to make it work with cmake 2.6.2, since SDO 0.2 installs its config file into
+# the 2.6.3 compatible location only ( share/cmake/SDO/ instead share/SDO/[cmake/] )
+if( "${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_LESS "2.6.3")
+ find_path(_SDO_CONFIG_DIR SharedDesktopOntologiesConfig.cmake PATH_SUFFIXES share/cmake/SharedDesktopOntologies/ )
+endif( "${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_LESS "2.6.3")
+
+if(NOT SharedDesktopOntologies_FIND_VERSION)
+ set(SharedDesktopOntologies_FIND_VERSION "${SDO_MIN_VERSION}")
+endif(NOT SharedDesktopOntologies_FIND_VERSION)
+
+find_package(SharedDesktopOntologies ${SharedDesktopOntologies_FIND_VERSION} QUIET NO_MODULE HINTS "${_SDO_CONFIG_DIR}" )
+
+if (SHAREDDESKTOPONTOLOGIES_ROOT_DIR)
+ mark_as_advanced(SHAREDDESKTOPONTOLOGIES_ROOT_DIR)
+endif (SHAREDDESKTOPONTOLOGIES_ROOT_DIR)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(SharedDesktopOntologies REQUIRED_VARS SHAREDDESKTOPONTOLOGIES_ROOT_DIR VERSION_VAR SharedDesktopOntologies_VERSION)