Warning, /frameworks/kdelibs4support/cmake/modules/FindNepomuk.cmake is written in an unsupported language. File is not indexed.
0001 # Once done this will define 0002 # 0003 # NEPOMUK_FOUND - system has Nepomuk 0004 # NEPOMUK_INCLUDE_DIRS - all include directories needed to compile Nepomuk 0005 # NEPOMUK_INCLUDE_DIR - the Nepomuk include directory (do not use. only for compatibility) 0006 # NEPOMUK_LIBRARIES - Link these to use Nepomuk 0007 # NEPOMUK_QUERY_LIBRARIES - Link these to use Nepomuk query 0008 # NEPOMUK_UTILS_LIBRARIES - Link these to use Nepomuk utils 0009 # NEPOMUK_DEFINITIONS - Compiler switches required for using Nepomuk 0010 # 0011 # Nepomuk requires Soprano, so this module checks for Soprano too. 0012 # 0013 0014 0015 # Copyright (c) 2008-2009, Sebastian Trueg, <sebastian@trueg.de> 0016 # 0017 # Redistribution and use is allowed according to the terms of the BSD license. 0018 # For details see the accompanying COPYING-CMAKE-SCRIPTS file. 0019 0020 0021 if (NOT DEFINED Soprano_FOUND) 0022 find_package(Soprano ${SOPRANO_MIN_VERSION} COMPONENTS PLUGIN_REDLANDBACKEND PLUGIN_RAPTORPARSER) 0023 endif (NOT DEFINED Soprano_FOUND) 0024 0025 if (NOT DEFINED SHAREDDESKTOPONTOLOGIES_FOUND) 0026 find_package(SharedDesktopOntologies) 0027 endif (NOT DEFINED SHAREDDESKTOPONTOLOGIES_FOUND) 0028 0029 # Check for the following stuff independent from whether soprano has been found 0030 # or not. This will give a better error message at the end. 0031 find_path(NEPOMUK_INCLUDE_DIR 0032 NAMES 0033 nepomuk/resource.h 0034 HINTS 0035 ${KDE4_INCLUDE_DIR} 0036 ${INCLUDE_INSTALL_DIR} 0037 ) 0038 0039 set(NEPOMUK_INCLUDE_DIRS ${NEPOMUK_INCLUDE_DIR} ${SOPRANO_INCLUDE_DIR}) 0040 0041 find_library(NEPOMUK_LIBRARIES 0042 NAMES 0043 nepomuk 0044 HINTS 0045 ${KDE4_LIB_DIR} 0046 ${LIB_INSTALL_DIR} 0047 ) 0048 0049 set(NEPOMUK_LIBRARIES ${NEPOMUK_LIBRARIES} ${SOPRANO_LIBRARIES}) 0050 0051 find_library(NEPOMUK_QUERY_LIBRARIES 0052 NAMES 0053 nepomukquery 0054 HINTS 0055 ${KDE4_LIB_DIR} 0056 ${LIB_INSTALL_DIR} 0057 ) 0058 0059 find_library(NEPOMUK_UTILS_LIBRARIES 0060 NAMES 0061 nepomukutils 0062 HINTS 0063 ${KDE4_LIB_DIR} 0064 ${LIB_INSTALL_DIR} 0065 ) 0066 0067 find_file(NEPOMUK_ADDONTOLOGYCLASSES_FILE NepomukAddOntologyClasses.cmake 0068 HINTS ${KDE4_DATA_INSTALL_DIR}/cmake/modules/ 0069 PATH_SUFFIXES share/apps/cmake/modules/ 0070 ) 0071 0072 include("${NEPOMUK_ADDONTOLOGYCLASSES_FILE}" OPTIONAL) 0073 0074 mark_as_advanced(NEPOMUK_INCLUDE_DIR NEPOMUK_INCLUDE_DIRS NEPOMUK_LIBRARIES NEPOMUK_QUERY_LIBRARIES NEPOMUK_UTILS_LIBRARIES NEPOMUK_ADDONTOLOGIES_FILE) 0075 0076 include(FindPackageHandleStandardArgs) 0077 # List all nepomuk and also all necessary soprano variables here, to make it 0078 # easier for the user to see what was missing: 0079 if(NOT WINCE) 0080 find_package_handle_standard_args(Nepomuk DEFAULT_MSG 0081 NEPOMUK_LIBRARIES NEPOMUK_INCLUDE_DIR NEPOMUK_ADDONTOLOGYCLASSES_FILE 0082 Soprano_FOUND 0083 SHAREDDESKTOPONTOLOGIES_FOUND 0084 ) 0085 else(NOT WINCE) 0086 #FIXME: There are no backends at this time 0087 find_package_handle_standard_args(Nepomuk DEFAULT_MSG 0088 NEPOMUK_LIBRARIES NEPOMUK_INCLUDE_DIR NEPOMUK_ADDONTOLOGYCLASSES_FILE 0089 Soprano_FOUND 0090 SHAREDDESKTOPONTOLOGIES_FOUND 0091 ) 0092 endif(NOT WINCE) 0093 0094 #to retain backward compatibility 0095 set (Nepomuk_FOUND ${NEPOMUK_FOUND}) 0096