1
0
mirror of https://github.com/danog/ton.git synced 2024-11-30 04:29:19 +01:00
ton/overlay/CMakeLists.txt
2019-09-07 14:33:36 +04:00

33 lines
690 B
CMake

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