aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2009-11-12 18:15:10 +0000
committerAlexander Neundorf <neundorf@kde.org>2009-11-12 18:15:10 +0000
commit08df9dc8dccab6d7e92dd84501c8fdeebbeea454 (patch)
treeb1ea3e3424191fc213cf9f30f4f0a69395db2751
parent784fe8d3eb8d105f16f02cb44d6d122f8e5542f8 (diff)
downloadextra-cmake-modules-08df9dc8dccab6d7e92dd84501c8fdeebbeea454.tar.gz
extra-cmake-modules-08df9dc8dccab6d7e92dd84501c8fdeebbeea454.tar.bz2
search for onto2vocabularyclass, and use the found executable with full path in the add_ontologies() macro
(should make kdelibs dashboard build again) Alex svn path=/trunk/KDE/kdelibs/; revision=1048079
-rw-r--r--modules/FindSoprano.cmake19
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/FindSoprano.cmake b/modules/FindSoprano.cmake
index 29331cf9..91148c14 100644
--- a/modules/FindSoprano.cmake
+++ b/modules/FindSoprano.cmake
@@ -3,6 +3,8 @@
#
# Sets the following variables:
# Soprano_FOUND - true is Soprano has been found
+# SOPRANO_ONTO2VOCABULARYCLASS_EXECUTABLE - the onto2vocabularyclass program, required for adding ontologies
+# SOPRANO_SOPRANOCMD_EXECUTABLE - the sopranocmd program
# SOPRANO_INCLUDE_DIR - The include directory
# SOPRANO_LIBRARIES - The Soprano core library to link to (libsoprano)
# SOPRANO_INDEX_LIBRARIES - The Soprano index library (libsopranoindex)
@@ -39,6 +41,21 @@
#else(SOPRANO_INCLUDE_DIR AND SOPRANO_LIBRARIES AND SOPRANO_INDEX_LIBRARIES AND SOPRANO_SERVER_LIBRARIES)
include(FindLibraryWithDebug)
+ find_program(SOPRANO_SOPRANOCMD_EXECUTABLE
+ NAMES sopranocmd
+ HINTS
+ ${BIN_INSTALL_DIR}
+ ${KDE4_BIN_INSTALL_DIR}
+ )
+
+ find_program(SOPRANO_ONTO2VOCABULARYCLASS_EXECUTABLE
+ NAMES onto2vocabularyclass
+ HINTS
+ ${BIN_INSTALL_DIR}
+ ${KDE4_BIN_INSTALL_DIR}
+ )
+
+
find_path(SOPRANO_INCLUDE_DIR
NAMES
soprano/soprano.h
@@ -227,6 +244,8 @@ mark_as_advanced(SOPRANO_CLIENT_LIBRARIES
SOPRANO_INCLUDE_DIR
SOPRANO_PLUGIN_DIR
_SOPRANO_MACRO_FILE
+ SOPRANO_ONTO2VOCABULARYCLASS_EXECUTABLE
+ SOPRANO_SOPRANOCMD_EXECUTABLE
)
#endif(SOPRANO_INCLUDE_DIR AND SOPRANO_LIBRARIES AND SOPRANO_INDEX_LIBRARIES AND SOPRANO_SERVER_LIBRARIES)