1
0
mirror of https://github.com/danog/ton.git synced 2024-11-26 20:14:55 +01:00
ton/rldp/CMakeLists.txt
2019-09-07 14:33:36 +04:00

26 lines
493 B
CMake

cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
if (NOT OPENSSL_FOUND)
find_package(OpenSSL REQUIRED)
endif()
set(RLDP_SOURCE
rldp.cpp
rldp-peer.cpp
rldp.h
rldp.hpp
rldp-peer.h
rldp-peer.hpp
)
add_library(rldp STATIC ${RLDP_SOURCE})
target_include_directories(rldp PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>/..
${OPENSSL_INCLUDE_DIR}
)
target_link_libraries(rldp PRIVATE tdutils tdactor fec adnl tl_api)