1
0
mirror of https://github.com/danog/ton.git synced 2024-11-26 20:14:55 +01:00
ton/validator-session/CMakeLists.txt

30 lines
787 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(VALIDATOR_SESSION_SOURCE
persistent-vector.cpp
validator-session-description.cpp
validator-session-state.cpp
validator-session.cpp
persistent-vector.h
validator-session-description.h
validator-session-description.hpp
validator-session-state.h
validator-session.h
validator-session.hpp
)
add_library(validatorsession STATIC ${VALIDATOR_SESSION_SOURCE})
target_include_directories(validatorsession PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>/..
${OPENSSL_INCLUDE_DIR}
)
target_link_libraries(validatorsession PRIVATE tdutils tdactor adnl rldp tl_api dht tdfec
overlay catchain)