Warning, /frameworks/kdelibs4support/cmake/modules/FindSharedDesktopOntologies.cmake is written in an unsupported language. File is not indexed.

0001 # - Try to find shared-desktop-ontologies
0002 # The shared-desktop-ontologies package is a direct dependancy of the Nepomuk
0003 # semantic desktop system and provides all necessary ontology files like
0004 # RDF, RDFS, NRL, or NIE.
0005 #
0006 # The package is created by the OSCAF project (http://oscaf.sourceforge.net).
0007 #
0008 # Once done this will define
0009 #
0010 #  SHAREDDESKTOPONTOLOGIES_FOUND         - system has shared-desktop-ontologies
0011 #  SHAREDDESKTOPONTOLOGIES_ROOT_DIR      - Folder where the ontologies are stored
0012 #  SHAREDDESKTOPONTOLOGIES_VERSION_MAJOR - The major version number, i.e. '1' in '1.2'
0013 #  SHAREDDESKTOPONTOLOGIES_VERSION_MINOR - The minor version number, i.e. '2' in '1.2'
0014 #  SHAREDDESKTOPONTOLOGIES_VERSION       - The complete version string, i.e. '1.2'
0015 #
0016 
0017 # Copyright (c) 2009, Sebastian Trueg, <trueg@kde.org>
0018 #
0019 # Redistribution and use is allowed according to the terms of the BSD license.
0020 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
0021 
0022 
0023 # First try the SharedDesktopOntologiesConfig.cmake from shared-desktop-ontologies 0.2 and newer
0024 
0025 # This is to make it work with cmake 2.6.2, since SDO 0.2 installs its config file into 
0026 # the 2.6.3 compatible location only ( share/cmake/SDO/ instead share/SDO/[cmake/] )
0027 if( "${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_LESS "2.6.3")
0028   find_path(_SDO_CONFIG_DIR SharedDesktopOntologiesConfig.cmake PATH_SUFFIXES share/cmake/SharedDesktopOntologies/ )
0029 endif( "${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_LESS "2.6.3")
0030 
0031 if(NOT SharedDesktopOntologies_FIND_VERSION)
0032   set(SharedDesktopOntologies_FIND_VERSION "${SDO_MIN_VERSION}")
0033 endif(NOT SharedDesktopOntologies_FIND_VERSION)
0034 
0035 find_package(SharedDesktopOntologies ${SharedDesktopOntologies_FIND_VERSION} QUIET NO_MODULE HINTS "${_SDO_CONFIG_DIR}" )
0036 
0037 if (SHAREDDESKTOPONTOLOGIES_ROOT_DIR)
0038   mark_as_advanced(SHAREDDESKTOPONTOLOGIES_ROOT_DIR)
0039 endif (SHAREDDESKTOPONTOLOGIES_ROOT_DIR)
0040 
0041 include(FindPackageHandleStandardArgs)
0042 find_package_handle_standard_args(SharedDesktopOntologies REQUIRED_VARS SHAREDDESKTOPONTOLOGIES_ROOT_DIR VERSION_VAR SharedDesktopOntologies_VERSION)