From 64442da40c3e390649d42e3e97a74986bba27afd Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Thu, 18 Jul 2019 10:13:49 +0200 Subject: [HICN-248] Install libraries under correct folder (lib/x86_64-linux-gnu on ubuntu/debian and lib64 on centos) Change-Id: I9c8fc206f2f93b9eae1060387ab6d0833da80124 Signed-off-by: Mauro Sardara --- libtransport/src/hicn/transport/CMakeLists.txt | 4 +++- libtransport/src/hicn/transport/protocols/CMakeLists.txt | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'libtransport') diff --git a/libtransport/src/hicn/transport/CMakeLists.txt b/libtransport/src/hicn/transport/CMakeLists.txt index b6be3f77a..3b5e9a15f 100644 --- a/libtransport/src/hicn/transport/CMakeLists.txt +++ b/libtransport/src/hicn/transport/CMakeLists.txt @@ -13,6 +13,8 @@ cmake_minimum_required(VERSION 3.5 FATAL_ERROR) +include(GNUInstallDirs) + set(ASIO_STANDALONE 1) add_subdirectory(core) @@ -26,7 +28,7 @@ add_subdirectory(utils) configure_file("config.h.in" "config.h" @ONLY) install( FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h - DESTINATION include/hicn/transport + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/hicn/transport COMPONENT lib${LIBTRANSPORT}-dev ) diff --git a/libtransport/src/hicn/transport/protocols/CMakeLists.txt b/libtransport/src/hicn/transport/protocols/CMakeLists.txt index 84a4d5279..23aeca9bf 100644 --- a/libtransport/src/hicn/transport/protocols/CMakeLists.txt +++ b/libtransport/src/hicn/transport/protocols/CMakeLists.txt @@ -57,7 +57,7 @@ set(TRANSPORT_CONFIG install( FILES ${TRANSPORT_CONFIG} - DESTINATION etc/hicn + DESTINATION ${CMAKE_INSTALL_FULL_SYSCONFDIR}/hicn COMPONENT lib${LIBTRANSPORT} ) -- cgit 1.2.3-korg