diff options
author | Sebastian Trueg <trueg@kde.org> | 2009-11-25 14:17:13 +0000 |
---|---|---|
committer | Sebastian Trueg <trueg@kde.org> | 2009-11-25 14:17:13 +0000 |
commit | ed597341bb53724b3cb4c9e9068e6ea83a1e2bdc (patch) | |
tree | 0dc0212b85823a81267039bd0f4f50bb42493e7a | |
parent | 6861596600f1463df7409502514621ce320114a1 (diff) |
Added pkgconfig file
-rw-r--r-- | CMakeLists.txt | 10 | ||||
-rw-r--r-- | shared-desktop-ontologies.pc.cmake | 8 |
2 files changed, 18 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 94588ad..7d6d028 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,16 @@ 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}") + +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) + macro(INSTALL_ONTOLOGY _name _group) install(FILES ${_name} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/ontology/${_group}) endmacro(INSTALL_ONTOLOGY) diff --git a/shared-desktop-ontologies.pc.cmake b/shared-desktop-ontologies.pc.cmake new file mode 100644 index 0000000..b5a7505 --- /dev/null +++ b/shared-desktop-ontologies.pc.cmake @@ -0,0 +1,8 @@ +prefix=@CMAKE_INSTALL_PREFIX@ + +Name: shared-desktop-ontologies +Description: Common OSCAF desktop ontologies +Version: @CMAKE_ONTOLOGIES_VERSION_STRING@ +Requires: +Libs: +Cflags: |