diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2011-03-25 09:25:12 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2011-03-25 09:25:12 +0100 |
commit | 8edd5cbc43e4a716478135d3566347243a3d4ade (patch) | |
tree | 3ba904e3042aa94046fffc6302b4968fd5ede837 /src/CMakeLists.txt | |
parent | 8d35fd322d3b8cd5240b95ac58ded1ff9ba041d1 (diff) | |
download | uca-8edd5cbc43e4a716478135d3566347243a3d4ade.tar.gz uca-8edd5cbc43e4a716478135d3566347243a3d4ade.tar.bz2 uca-8edd5cbc43e4a716478135d3566347243a3d4ade.tar.xz uca-8edd5cbc43e4a716478135d3566347243a3d4ade.zip |
Install pkg-config information file
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 757dcf7..a3f307d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -118,7 +118,19 @@ install(TARGETS uca LIBRARY DESTINATION lib${LIB_SUFFIX}) install(FILES ${uca_HDRS} - DESTINATION include/libuca) + DESTINATION include/uca) + +# --- install pkg-config file +set(prefix ${CMAKE_INSTALL_PREFIX}) +set(exec_prefix "\${prefix}") +set(libdir "\${exec_prefix}/lib") +set(includedir "\${prefix}/include") +set(VERSION ${UCA_VERSION_STRING}) + +configure_file("${CMAKE_CURRENT_SOURCE_DIR}/uca.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/uca.pc" @ONLY IMMEDIATE) + +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/uca.pc DESTINATION lib/pkgconfig) + set(CPACK_PACKAGE_DESCRIPTION "Unified Camera Access library") set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Abstract interface for different camera classes and frame grabber devices") @@ -133,9 +145,9 @@ set(CPACK_PACKAGE_VENDOR "Karlsruhe Institute of Technology/IPE") set(CPACK_PACKAGE_VERSION_MAJOR ${UCA_VERSION_MAJOR}) set(CPACK_PACKAGE_VERSION_MINOR ${UCA_VERSION_MINOR}) set(CPACK_PACKAGE_VERSION_PATCH ${UCA_VERSION_PATCH}) -set(VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}") +set(VERSION ${UCA_VERSION_STRING}) set(CPACK_GENERATOR "DEB;RPM;") -set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}-${CMAKE_SYSTEM_PROCESSOR}") +set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${UCA_VERSION_STRING}-${CMAKE_SYSTEM_PROCESSOR}") include(CPack) |