mirror of
https://github.com/RetroShare/BitDHT.git
synced 2026-09-12 11:40:03 +05:00
29 lines
637 B
CMake
29 lines
637 B
CMake
# RetroShare decentralized communication platform
|
|
#
|
|
# Copyright (C) 2021-2022 Gioacchino Mazzurco <gio@retroshare.cc>
|
|
#
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
cmake_minimum_required (VERSION 3.15)
|
|
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 )
|
|
|
|
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} )
|