mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-12 19:22:37 +00:00
* fixing compilation warning: ld: warning: ignoring duplicate libraries: '../crypto/libton_block.a', '../crypto/libton_crypto.a' * update upload-artifact version in TON Static Code Analysis GH action * remove even more redundant linking dependencies * remove even more redundant linking dependencies 2
38 lines
920 B
CMake
38 lines
920 B
CMake
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
|
|
|
|
if (NOT OPENSSL_FOUND)
|
|
find_package(OpenSSL REQUIRED)
|
|
endif()
|
|
|
|
set(CATCHAIN_SOURCE
|
|
catchain-received-block.cpp
|
|
#catchain-receiver-fork.cpp
|
|
catchain-receiver-source.cpp
|
|
catchain-receiver.cpp
|
|
catchain-block.cpp
|
|
catchain.cpp
|
|
|
|
catchain-block.hpp
|
|
catchain-received-block.h
|
|
catchain-received-block.hpp
|
|
#catchain-receiver-fork.h
|
|
#catchain-receiver-fork.hpp
|
|
catchain-receiver-interface.h
|
|
catchain-receiver-source.h
|
|
catchain-receiver-source.hpp
|
|
catchain-receiver.h
|
|
catchain-receiver.hpp
|
|
catchain-types.h
|
|
catchain.h
|
|
catchain.hpp
|
|
)
|
|
|
|
add_library(catchain STATIC ${CATCHAIN_SOURCE})
|
|
|
|
target_include_directories(overlay PUBLIC
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>/..
|
|
${OPENSSL_INCLUDE_DIR}
|
|
)
|
|
target_link_libraries(catchain PRIVATE tdutils tdactor adnl tl_api dht tdfec overlay)
|
|
|