diff options
author | Sebastian Trueg <trueg@kde.org> | 2009-11-27 14:48:15 +0000 |
---|---|---|
committer | Sebastian Trueg <trueg@kde.org> | 2009-11-27 14:48:15 +0000 |
commit | 743d24c3789c6128e18ef7b0d7b22ba34b619fb7 (patch) | |
tree | 4f786f49263496685bf8f1982cbe2da6d025e7d9 | |
parent | c4194063145c8e9e7f5cf2c5ffee1efe87f50f57 (diff) |
* Renamed ontology file templates to <onto>.ontology.in
* Added cmake config files
-rw-r--r-- | CMakeLists.txt | 35 | ||||
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | SharedDesktopOntologiesConfig.cmake.in | 5 | ||||
-rw-r--r-- | SharedDesktopOntologiesVersion.cmake.in | 10 | ||||
-rw-r--r-- | base/dces.ontology.in (renamed from base/dces.ontology.cmake) | 0 | ||||
-rw-r--r-- | base/dcterms.ontology.in (renamed from base/dcterms.ontology.cmake) | 0 | ||||
-rw-r--r-- | base/dctype.ontology.in (renamed from base/dctype.ontology.cmake) | 0 | ||||
-rw-r--r-- | base/rdf.ontology.in (renamed from base/rdf.ontology.cmake) | 0 | ||||
-rw-r--r-- | base/rdfs.ontology.in (renamed from base/rdfs.ontology.cmake) | 0 | ||||
-rw-r--r-- | nao/nao.ontology.in (renamed from nao/nao.ontology.cmake) | 0 | ||||
-rw-r--r-- | ncal/ncal.ontology.in (renamed from ncal/ncal.ontology.cmake) | 0 | ||||
-rw-r--r-- | nco/nco.ontology.in (renamed from nco/nco.ontology.cmake) | 0 | ||||
-rw-r--r-- | nexif/nexif.ontology.in (renamed from nexif/nexif.ontology.cmake) | 0 | ||||
-rw-r--r-- | nfo/nfo.ontology.in (renamed from nfo/nfo.ontology.cmake) | 0 | ||||
-rw-r--r-- | nid3/nid3.ontology.in (renamed from nid3/nid3.ontology.cmake) | 0 | ||||
-rw-r--r-- | nie/nie.ontology.in (renamed from nie/nie.ontology.cmake) | 0 | ||||
-rw-r--r-- | nmm/nmm.ontology.in (renamed from nmm/nmm.ontology.cmake) | 0 | ||||
-rw-r--r-- | nmo/nmo.ontology.in (renamed from nmo/nmo.ontology.cmake) | 0 | ||||
-rw-r--r-- | nrl/nrl.ontology.in (renamed from nrl/nrl.ontology.cmake) | 0 | ||||
-rw-r--r-- | nso/nso.ontology.in (renamed from nso/nso.ontology.cmake) | 0 | ||||
-rw-r--r-- | pimo/pimo.ontology.in (renamed from pimo/pimo.ontology.cmake) | 0 | ||||
-rw-r--r-- | tmo/tmo.ontology.in (renamed from tmo/tmo.ontology.cmake) | 0 |
22 files changed, 46 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 04416fd..9b75e06 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,20 +1,45 @@ +# required by cmake +cmake_minimum_required(VERSION 2.6) + project(shared-desktop-ontologies) -cmake_minimum_required(VERSION 2.6) -set(CMAKE_ONTOLOGIES_VERSION_MAJOR 0) -set(CMAKE_ONTOLOGIES_VERSION_MINOR 1) -set(CMAKE_ONTOLOGIES_VERSION_STRING "${CMAKE_ONTOLOGIES_VERSION_MAJOR}.${CMAKE_ONTOLOGIES_VERSION_MINOR}") +# set the version to be used by SharedDesktopOntologiesConfig.cmake +# =============================================================================================== +set(SHAREDDESKTOPONTOLOGIES_VERSION_MAJOR 0) +set(SHAREDDESKTOPONTOLOGIES_VERSION_MINOR 2) +set(SHAREDDESKTOPONTOLOGIES_VERSION "${SHAREDDESKTOPONTOLOGIES_VERSION_MAJOR}.${SHAREDDESKTOPONTOLOGIES_VERSION_MINOR}") + + +# set the root dir to be used by SharedDesktopOntologiesConfig.cmake +# =============================================================================================== +set(SHAREDDESKTOPONTOLOGIES_ROOT_DIR "${CMAKE_INSTALL_PREFIX}/share/ontology") + +# generate SharedDesktopOntologiesConfig.cmake for easy utilisation of the package by other cmake build systems +# =============================================================================================== +configure_file(SharedDesktopOntologiesConfig.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/SharedDesktopOntologiesConfig.cmake @ONLY) +configure_file(SharedDesktopOntologiesVersion.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/SharedDesktopOntologiesVersion.cmake @ONLY) +install(FILES + ${CMAKE_CURRENT_BINARY_DIR}/SharedDesktopOntologiesConfig.cmake + ${CMAKE_CURRENT_BINARY_DIR}/SharedDesktopOntologiesVersion.cmake + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/cmake/SharedDesktopOntologies) + + +# optionally install the pkgconfig stuff +# =============================================================================================== if(NOT WIN32) set(PKGCONFIG_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/share/pkgconfig/" CACHE STRING "Base directory for pkgconfig files") configure_file(${CMAKE_CURRENT_SOURCE_DIR}/shared-desktop-ontologies.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/shared-desktop-ontologies.pc @ONLY) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/shared-desktop-ontologies.pc DESTINATION ${PKGCONFIG_INSTALL_PREFIX}) endif(NOT WIN32) + +# finally install all the ontologies +# =============================================================================================== macro(INSTALL_ONTOLOGY _name _group) set(ONTO_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/share/ontology/${_group}) - configure_file("${_name}.ontology.cmake" "${CMAKE_CURRENT_BINARY_DIR}/${_name}.ontology") + configure_file("${_name}.ontology.in" "${CMAKE_CURRENT_BINARY_DIR}/${_name}.ontology") install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${_name}.ontology" DESTINATION ${ONTO_INSTALL_DIR}) install(FILES "${_name}.trig" DESTINATION ${ONTO_INSTALL_DIR}) endmacro(INSTALL_ONTOLOGY) @@ -11,6 +11,7 @@ nco:gender nmo:messageSubject nmo:receivedDate + 11/27/2009 - trueg: Added SharedDesktopOntologiesConfig.cmake 0.1 First release of the shared ontologies. diff --git a/SharedDesktopOntologiesConfig.cmake.in b/SharedDesktopOntologiesConfig.cmake.in new file mode 100644 index 0000000..7e8b05e --- /dev/null +++ b/SharedDesktopOntologiesConfig.cmake.in @@ -0,0 +1,5 @@ +set(SHAREDDESKTOPONTOLOGIES_VERSION_MAJOR @SHAREDDESKTOPONTOLOGIES_VERSION_MAJOR@) +set(SHAREDDESKTOPONTOLOGIES_VERSION_MINOR @SHAREDDESKTOPONTOLOGIES_VERSION_MINOR@) +set(SHAREDDESKTOPONTOLOGIES_VERSION @SHAREDDESKTOPONTOLOGIES_VERSION@) + +set(SHAREDDESKTOPONTOLOGIES_ROOT_DIR @SHAREDDESKTOPONTOLOGIES_ROOT_DIR@) diff --git a/SharedDesktopOntologiesVersion.cmake.in b/SharedDesktopOntologiesVersion.cmake.in new file mode 100644 index 0000000..e1cdd04 --- /dev/null +++ b/SharedDesktopOntologiesVersion.cmake.in @@ -0,0 +1,10 @@ +set(PACKAGE_VERSION @SHAREDDESKTOPONTOLOGIES_VERSION@) + +if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}" ) + set(PACKAGE_VERSION_COMPATIBLE FALSE) +else("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}" ) + set(PACKAGE_VERSION_COMPATIBLE TRUE) + if( "${PACKAGE_FIND_VERSION}" STREQUAL "${PACKAGE_VERSION}") + set(PACKAGE_VERSION_EXACT TRUE) + endif( "${PACKAGE_FIND_VERSION}" STREQUAL "${PACKAGE_VERSION}") +endif("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}" ) diff --git a/base/dces.ontology.cmake b/base/dces.ontology.in index f6c9d5f..f6c9d5f 100644 --- a/base/dces.ontology.cmake +++ b/base/dces.ontology.in diff --git a/base/dcterms.ontology.cmake b/base/dcterms.ontology.in index 1590430..1590430 100644 --- a/base/dcterms.ontology.cmake +++ b/base/dcterms.ontology.in diff --git a/base/dctype.ontology.cmake b/base/dctype.ontology.in index 6a50dc6..6a50dc6 100644 --- a/base/dctype.ontology.cmake +++ b/base/dctype.ontology.in diff --git a/base/rdf.ontology.cmake b/base/rdf.ontology.in index 68691aa..68691aa 100644 --- a/base/rdf.ontology.cmake +++ b/base/rdf.ontology.in diff --git a/base/rdfs.ontology.cmake b/base/rdfs.ontology.in index 357ae0e..357ae0e 100644 --- a/base/rdfs.ontology.cmake +++ b/base/rdfs.ontology.in diff --git a/nao/nao.ontology.cmake b/nao/nao.ontology.in index ecfd628..ecfd628 100644 --- a/nao/nao.ontology.cmake +++ b/nao/nao.ontology.in diff --git a/ncal/ncal.ontology.cmake b/ncal/ncal.ontology.in index b96627c..b96627c 100644 --- a/ncal/ncal.ontology.cmake +++ b/ncal/ncal.ontology.in diff --git a/nco/nco.ontology.cmake b/nco/nco.ontology.in index 4e49ef8..4e49ef8 100644 --- a/nco/nco.ontology.cmake +++ b/nco/nco.ontology.in diff --git a/nexif/nexif.ontology.cmake b/nexif/nexif.ontology.in index 0f7f378..0f7f378 100644 --- a/nexif/nexif.ontology.cmake +++ b/nexif/nexif.ontology.in diff --git a/nfo/nfo.ontology.cmake b/nfo/nfo.ontology.in index 70a73c2..70a73c2 100644 --- a/nfo/nfo.ontology.cmake +++ b/nfo/nfo.ontology.in diff --git a/nid3/nid3.ontology.cmake b/nid3/nid3.ontology.in index fc1cab2..fc1cab2 100644 --- a/nid3/nid3.ontology.cmake +++ b/nid3/nid3.ontology.in diff --git a/nie/nie.ontology.cmake b/nie/nie.ontology.in index ea9e3ad..ea9e3ad 100644 --- a/nie/nie.ontology.cmake +++ b/nie/nie.ontology.in diff --git a/nmm/nmm.ontology.cmake b/nmm/nmm.ontology.in index 7bc7de0..7bc7de0 100644 --- a/nmm/nmm.ontology.cmake +++ b/nmm/nmm.ontology.in diff --git a/nmo/nmo.ontology.cmake b/nmo/nmo.ontology.in index 7c75d33..7c75d33 100644 --- a/nmo/nmo.ontology.cmake +++ b/nmo/nmo.ontology.in diff --git a/nrl/nrl.ontology.cmake b/nrl/nrl.ontology.in index 0a5a7b6..0a5a7b6 100644 --- a/nrl/nrl.ontology.cmake +++ b/nrl/nrl.ontology.in diff --git a/nso/nso.ontology.cmake b/nso/nso.ontology.in index 7f5ad36..7f5ad36 100644 --- a/nso/nso.ontology.cmake +++ b/nso/nso.ontology.in diff --git a/pimo/pimo.ontology.cmake b/pimo/pimo.ontology.in index 9d19516..9d19516 100644 --- a/pimo/pimo.ontology.cmake +++ b/pimo/pimo.ontology.in diff --git a/tmo/tmo.ontology.cmake b/tmo/tmo.ontology.in index 3457de8..3457de8 100644 --- a/tmo/tmo.ontology.cmake +++ b/tmo/tmo.ontology.in |