From 6abbec95073f3c1eb5059cbf8441111ef4a317a7 Mon Sep 17 00:00:00 2001 From: Gio Date: Mon, 21 Feb 2022 16:24:17 +0100 Subject: [PATCH] CMake install bdboot.txt --- CMakeLists.txt | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index af35265..1eadc4d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,13 +1,19 @@ # RetroShare decentralized communication platform # -# Copyright (C) 2021 Gioacchino Mazzurco -# Copyright (C) 2021 Asociación Civil Altermundi +# Copyright (C) 2021-2022 Gioacchino Mazzurco +# Copyright (C) 2021-2022 Asociación Civil Altermundi # # SPDX-License-Identifier: CC0-1.0 cmake_minimum_required (VERSION 2.8.12) project(bitdht) +set( + RS_DATA_DIR + "${CMAKE_INSTALL_PREFIX}/share/retroshare" + CACHE STRING + "Path where to install RetroShare system wide data" ) + file( GLOB BITDHT_SOURCES src/bitdht/*.c src/bitdht/*.cc src/udp/*.cc src/util/*.cc ) @@ -17,3 +23,7 @@ add_library(${PROJECT_NAME} ${BITDHT_SOURCES}) target_include_directories( ${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src ) + +install( + FILES src/bitdht/bdboot.txt + DESTINATION ${RS_DATA_DIR} )