forked from KDE/soprano
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSopranoConfig.cmake.in
More file actions
111 lines (98 loc) · 4.82 KB
/
SopranoConfig.cmake.in
File metadata and controls
111 lines (98 loc) · 4.82 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# Generated by CMake, don't edit, changes will be lost.
#
# Config file for Soprano
# The following variables are defined:
# Soprano_FOUND - True if Soprano has been found.
# Soprano_BINARY_DIR - The binaries directory.
# Soprano_DATA_DIR - The data directory.
# Soprano_INCLUDE_DIR - The include directory.
# Soprano_LIBRARY_DIR - The libraries directory.
#
# Soprano_LIBRARIES - The Soprano core library to link to (libsoprano).
# Soprano_client_LIBRARIES - The Soprano client library (libsopranoclient).
# Soprano_index_LIBRARIES - The Soprano index library (libsopranoindex).
# Soprano_server_LIBRARIES - The Soprano server library (libsopranoserver).
#
# SOPRANO_ONTO2VOCABULARYCLASS_EXECUTABLE - The onto2vocabularyclass program.
# SOPRANO_SOPRANOCMD_EXECUTABLE - The sopranocmd program.
#
# Additionally, the following components are supported:
# PLUGIN_NQUADPARSER
# PLUGIN_NQUADSERIALIZER
# PLUGIN_RAPTORPARSER
# PLUGIN_RAPTORSERIALIZER
# PLUGIN_REDLANDBACKEND
# PLUGIN_SESAME2BACKEND
# PLUGIN_VIRTUOSOBACKEND
#
# The following variables are defined for compatibility purpose.
# They should be considered deprecated.
# SOPRANO_FOUND - True if Soprano has been found.
# SOPRANO_INCLUDE_DIR - The include directory.
# SOPRANO_MIN_VERSION - The minimum version to look for.
# SOPRANO_VERSION - The Soprano version.
# SOPRANO_LIBRARIES - The Soprano core library to link to (libsoprano).
# SOPRANO_CLIENT_LIBRARIES - The Soprano client library (libsopranoclient).
# SOPRANO_INDEX_LIBRARIES - The Soprano index library (libsopranoindex).
# SOPRANO_SERVER_LIBRARIES - The Soprano server library (libsopranoserver).
@PACKAGE_INIT@
########## The Soprano version ##########
set(Soprano_VERSION_MAJOR @SOPRANO_VERSION_MAJOR@)
set(Soprano_VERSION_MINOR @SOPRANO_VERSION_MINOR@)
set(Soprano_VERSION_PATCH @SOPRANO_VERSION_RELEASE@)
set(Soprano_VERSION @SOPRANO_VERSION_STRING@)
#########################################
########## Install dirs ##########
set_and_check(Soprano_BINARY_DIR "@PACKAGE_BIN_INSTALL_DIR@")
set_and_check(Soprano_DATA_DIR "@PACKAGE_DATA_INSTALL_DIR@")
set_and_check(Soprano_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
set_and_check(Soprano_LIBRARY_DIR "@PACKAGE_LIB_INSTALL_DIR@")
set_and_check(Soprano_MACRO_DIR "${Soprano_DATA_DIR}/soprano/cmake")
##################################
########## Soprano programs ##########
set_and_check(SOPRANO_ONTO2VOCABULARYCLASS_EXECUTABLE "@PACKAGE_BIN_INSTALL_DIR@/onto2vocabularyclass")
set(SOPRANO_SOPRANOCMD_EXECUTABLE "@PACKAGE_BIN_INSTALL_DIR@/sopranocmd")
######################################
########## The Soprano libraries ##########
# Load the exported targets.
include("${CMAKE_CURRENT_LIST_DIR}/SopranoTargets.cmake")
set(Soprano_LIBRARIES Soprano::soprano)
set(Soprano_client_LIBRARIES Soprano::sopranoclient)
set(Soprano_index_LIBRARIES Soprano::sopranoindex)
set(Soprano_server_LIBRARIES Soprano::sopranoserver)
###########################################
# Load the SopranoAddOntology.cmake file
include(${Soprano_MACRO_DIR}/SopranoAddOntology.cmake)
########## Components handling ##########
set(Soprano_PLUGIN_REDLANDBACKEND_FOUND @Soprano_PLUGIN_REDLANDBACKEND_FOUND@)
set(Soprano_PLUGIN_SESAME2BACKEND_FOUND @Soprano_PLUGIN_SESAME2BACKEND_FOUND@)
set(Soprano_PLUGIN_VIRTUOSOBACKEND_FOUND @Soprano_PLUGIN_VIRTUOSOBACKEND_FOUND@)
set(Soprano_PLUGIN_RAPTORPARSER_FOUND @Soprano_PLUGIN_RAPTORPARSER_FOUND@)
set(Soprano_PLUGIN_RAPTORSERIALIZER_FOUND @Soprano_PLUGIN_RAPTORSERIALIZER_FOUND@)
#########################################
########## Backward compatibility variables ##########
set(SOPRANO_FOUND ${Soprano_FOUND})
set(SOPRANO_INCLUDE_DIR ${Soprano_INCLUDE_DIR})
set(SOPRANO_VERSION ${Soprano_VERSION})
set(SOPRANO_LIBRARIES ${Soprano_LIBRARIES})
set(SOPRANO_CLIENT_LIBRARIES ${Soprano_client_LIBRARIES})
set(SOPRANO_INDEX_LIBRARIES ${Soprano_index_LIBRARIES})
set(SOPRANO_SERVER_LIBRARIES ${Soprano_server_LIBRARIES})
# DEPRECATED: Use find_package(Soprano x.y.z) instead
if(SOPRANO_MIN_VERSION)
set(Soprano_FIND_VERSION ${SOPRANO_MIN_VERSION})
endif()
# FindSoprano.cmake used to change CMAKE_MODULE_PATH in order to allow loading
# SopranoAddOntology.cmake.
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${Soprano_MACRO_DIR})
# The following components are defined in FindSoprano.cmake. However, these plugins
# are always built. The components are consequently always found.
set(Soprano_PLUGIN_NQUADPARSER_FOUND TRUE)
set(Soprano_PLUGIN_NQUADSERIALIZER_FOUND TRUE)
# FindSoprano.cmake did set SOPRANO_${COMPONENT}_FOUND (all uppercase)
foreach(COMPONENT ${Soprano_FIND_COMPONENTS})
set(SOPRANO_${COMPONENT}_FOUND ${Soprano_${COMPONENT}_FOUND})
endforeach()
######################################################
# The following line *must* be at the end of the file
check_required_components(Soprano)