diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-04-27 01:54:44 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-04-27 01:54:44 +0200 |
commit | 8d3ad26d8331c43659d0d4e77e8a50fbc3cfc1e4 (patch) | |
tree | 30c74c76115279cdc15437a07fabd8347ac1fdfd /CMakeLists.txt | |
parent | dcd8ad63316eac672492bc18112bbbb52811c3fc (diff) | |
download | pcitool-8d3ad26d8331c43659d0d4e77e8a50fbc3cfc1e4.tar.gz pcitool-8d3ad26d8331c43659d0d4e77e8a50fbc3cfc1e4.tar.bz2 pcitool-8d3ad26d8331c43659d0d4e77e8a50fbc3cfc1e4.tar.xz pcitool-8d3ad26d8331c43659d0d4e77e8a50fbc3cfc1e4.zip |
Further adjustments to get ready for independent event plugins
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 39 |
1 files changed, 37 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index faed5aa..e6313d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ project(pcitool) -set(PCILIB_VERSION "0.1.0") -set(PCILIB_ABI_VERSION "1") +set(PCILIB_VERSION "0.2.0") +set(PCILIB_ABI_VERSION "2") cmake_minimum_required(VERSION 2.6) @@ -30,6 +30,41 @@ set_target_properties(pcilib PROPERTIES SOVERSION ${PCILIB_ABI_VERSION} ) +set(TARNAME "pcitool") +set(PACKAGE_VERSION ${PCILIB_VERSION}) +set(PACKAGE_NAME "${TARNAME}") +set(PACKAGE_TARNAME "${TARNAME}") +set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}") +set(PACKAGE_BUGREPORT "http://ufo.kit.edu/ufo/newticket") +if(NOT DEFINED BIN_INSTALL_DIR) + set(BIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin") +endif(NOT DEFINED BIN_INSTALL_DIR) +if(NOT DEFINED LIB_INSTALL_DIR) + set(LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib") +endif(NOT DEFINED LIB_INSTALL_DIR) +if(NOT DEFINED INCLUDE_INSTALL_DIR) + set(INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include") +endif(NOT DEFINED INCLUDE_INSTALL_DIR) + +if(NOT DEFINED DATA_INSTALL_DIR) + set(DATA_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/share") +endif(NOT DEFINED DATA_INSTALL_DIR) + +if(NOT DEFINED LOCALE_INSTALL_DIR) + set(LOCALE_INSTALL_DIR "${DATA_INSTALL_DIR}/locale") +endif(NOT DEFINED LOCALE_INSTALL_DIR) + +set(PCILIB_PLUGIN_DIR "${LIB_INSTALL_DIR}/pcilib") +set(PCILIB_DATA_DIR "${DATA_INSTALL_DIR}/pcilib") +set(PCILIB_MODEL_DIR "${PCILIB_DATA_DIR}/models") + +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/pcitool.pc.in ${CMAKE_CURRENT_BINARY_DIR}/pcitool.pc) +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/pcilib/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/pcilib/config.h) + +install(FILES + ${CMAKE_CURRENT_BINARY_DIR}/pcitool.pc + DESTINATION ${LIB_INSTALL_DIR}/pkgconfig +) |