summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorTimo Dritschler <timo.dritschler@kit.edu>2014-11-21 14:11:27 +0100
committerTimo Dritschler <timo.dritschler@kit.edu>2014-11-21 14:15:01 +0100
commita0351b722ae0bdbc5ed44eeab21daa230362f6e8 (patch)
treed78e0f678cf4ebc075be5f19a5402ab6e96218a9 /CMakeLists.txt
parent65c2326592b7b1496c468459689904843e443b26 (diff)
downloadkiro-a0351b722ae0bdbc5ed44eeab21daa230362f6e8.tar.gz
kiro-a0351b722ae0bdbc5ed44eeab21daa230362f6e8.tar.bz2
kiro-a0351b722ae0bdbc5ed44eeab21daa230362f6e8.tar.xz
kiro-a0351b722ae0bdbc5ed44eeab21daa230362f6e8.zip
Fix #5: Changed build process to use ConfigurePaths instead of static paths
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt22
1 files changed, 6 insertions, 16 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 98893f3..a2491de 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,12 +10,13 @@ set(LIBKIRO_VERSION_PATCH "0")
set(LIBKIRO_VERSION_RELEASE "1")
set(LIBKIRO_VERSION_STRING "${LIBKIRO_VERSION_MAJOR}.${LIBKIRO_VERSION_MINOR}.${LIBKIRO_VERSION_PATCH}")
set(VERSION "${LIBKIRO_VERSION_STRING}")
-set(LIBKIRO_DESCRIPTION "Tango Device wrapper for an InfiniBand Server and Client")
+set(LIBKIRO_DESCRIPTION "Small InfiniBand communication Server and Client")
set(LIBKIRO_ABI_VERSION "${LIBKIRO_VERSION_MAJOR}.${LIBKIRO_VERSION_MINOR}")
-
set(LIBKIRO_BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR})
+set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/common/cmake")
+
message(STATUS "checking for rdmacm-devel library")
find_path(RDMACM_DIR rdma/rdma_verbs.h)
if(NOT RDMACM_DIR)
@@ -36,17 +37,11 @@ include_directories(
add_definitions(-Wall -Wextra -std=c99)
-# check for 64 bit
-if (CMAKE_SIZEOF_VOID_P EQUAL 8)
- set(LIB_INSTALL_DIR "lib64")
-else()
- set(LIB_INSTALL_DIR "lib")
-endif()
+include(ConfigurePaths)
+configure_paths(KIRO)
-set(HEADER_INSTALL_DIR include/kiro)
add_subdirectory(src)
-
add_subdirectory(test)
set(CPACK_PACKAGE_DESCRIPTION ${LIBKIRO_DESCRIPTION})
@@ -66,14 +61,9 @@ set(CPACK_SOURCE_PACKAGE_FILE_NAME "LIBKIRO-${LIBKIRO_VERSION_STRING}" CACHE INT
set(CPACK_PACKAGE_FILE_NAME
"${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}-${CPACK_PACKAGE_RELEASE}.${CMAKE_SYSTEM_PROCESSOR}")
-set(LIBKIRO_PKG_PREFIX ${CMAKE_INSTALL_PREFIX})
-set(LIBKIRO_PKG_EXEC_PREFIX "${LIBKIRO_PKG_PREFIX}/bin")
-set(LIBKIRO_PKG_LIBDIR "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}")
-set(LIBKIRO_PKG_INCLUDEDIR "${LIBKIRO_PKG_PREFIX}/include")
-
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/src/kiro.pc.in"
"${CMAKE_CURRENT_BINARY_DIR}/kiro.pc" @ONLY IMMEDIATE)
-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kiro.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kiro.pc DESTINATION ${KIRO_PKGCONFIGDIR})
include(CPack)