1
0
mirror of https://github.com/danog/ton.git synced 2024-12-11 16:49:37 +01:00
ton/rldp/CMakeLists.txt

26 lines
493 B
CMake
Raw Normal View History

2019-09-07 12:03:22 +02:00
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)