aboutsummaryrefslogtreecommitdiff
path: root/modules/FindSharedDesktopOntologies.cmake
blob: 6b3cabe875983d9b0c5c7da81eda1ae29ddd197a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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
#

# 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.

if (SHAREDDESKTOPONTOLOGIES_ROOT_DIR)
   # in cache already
   set(SHAREDDESKTOPONTOLOGIES_FIND_QUIETLY TRUE)
endif (SHAREDDESKTOPONTOLOGIES_ROOT_DIR)

# Look in the standard dirs
find_path (SHAREDDESKTOPONTOLOGIES_ROOT_DIR
  nie/nie.trig
  PATHS
  /usr/share
  /usr/local/share
  ${SHARE_INSTALL_PREFIX}
  ENV XDG_DATA_DIRS
  PATH_SUFFIXES ontology)

# Look in CMAKE_PREFIX_PATH
find_path(SHAREDDESKTOPONTOLOGIES_ROOT_DIR
  nie/nie.trig
  PATH_SUFFIXES share/ontology)

mark_as_advanced(SHAREDDESKTOPONTOLOGIES_ROOT_DIR)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(SharedDesktopOntologies DEFAULT_MSG SHAREDDESKTOPONTOLOGIES_ROOT_DIR)