diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2015-06-23 14:59:33 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2015-06-23 14:59:33 +0200 |
commit | f3c6e08fe4068534373f8026892f569bdcdfa4dd (patch) | |
tree | 729385463df8c457e62c8fcfd8b2c01c826e1cb0 /CMakeLists.txt | |
parent | cc7465bec1ab0b12ca79758807788e4ac8fad765 (diff) | |
download | libufodecode-f3c6e08fe4068534373f8026892f569bdcdfa4dd.tar.gz libufodecode-f3c6e08fe4068534373f8026892f569bdcdfa4dd.tar.bz2 libufodecode-f3c6e08fe4068534373f8026892f569bdcdfa4dd.tar.xz libufodecode-f3c6e08fe4068534373f8026892f569bdcdfa4dd.zip |
Use ConfigurePaths to configure paths
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 32 |
1 files changed, 7 insertions, 25 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 231aa15..0b68b35 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,37 +1,19 @@ cmake_minimum_required(VERSION 2.8) -set(TARNAME "libufodecode") set(LIBUFODECODE_API_VERSION "0.3") set(LIBUFODECODE_ABI_VERSION "0.3") set(LIBUFODECODE_ABI_MAJOR_VERSION "0") +set(LIBUFODECODE_VERSION "0.3.0") -set(PACKAGE_VERSION "0.3.0") -set(PACKAGE_NAME "${TARNAME}") -set(PACKAGE_TARNAME "${TARNAME}") -set(PACKAGE_STRING "${PACKAGE_NAME}-${PACKAGE_VERSION}") -set(PACKAGE_BUGREPORT "http://ufo.kit.edu/ufo/newticket") +list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}") -set(CPACK_SOURCE_GENERATOR "TGZ") -set(CPACK_SOURCE_IGNORE_FILES ".git" "tags" ".bzr" ".swp") -set(CPACK_SOURCE_PACKAGE_FILE_NAME ${PACKAGE_STRING} CACHE INTERNAL "tarball basename") +include(ConfigurePaths) +configure_paths(LIBUFODECODE) -if(NOT DEFINED BIN_INSTALL_DIR) - set(BIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin") -endif(NOT DEFINED BIN_INSTALL_DIR) +configure_file("${CMAKE_CURRENT_SOURCE_DIR}/ufodecode.pc.in" + "${CMAKE_CURRENT_BINARY_DIR}/ufodecode.pc" + @ONLY IMMEDIATE) -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 LOCALE_INSTALL_DIR) - set(LOCALE_INSTALL_DIR "${DATA_INSTALL_DIR}/locale/") -endif(NOT DEFINED LOCALE_INSTALL_DIR) - -configure_file(ufodecode.pc.in ${CMAKE_CURRENT_BINARY_DIR}/ufodecode.pc) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ufodecode.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig) |