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

23 lines
444 B
CMake

cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
if (NOT OPENSSL_FOUND)
find_package(OpenSSL REQUIRED)
endif()
set(FEC_SOURCE
fec.h
fec.cpp
)
add_library(fec STATIC ${FEC_SOURCE})
target_include_directories(fec PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>/..
${OPENSSL_INCLUDE_DIR}
)
target_link_libraries(fec PRIVATE tl_api)
target_link_libraries(fec PUBLIC tdfec)