mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
initial commit
This commit is contained in:
commit
c2da007f40
1610 changed files with 398047 additions and 0 deletions
26
tdnet/CMakeLists.txt
Normal file
26
tdnet/CMakeLists.txt
Normal file
|
@ -0,0 +1,26 @@
|
|||
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
|
||||
|
||||
set(TDNET_SOURCE
|
||||
td/net/FdListener.cpp
|
||||
td/net/TcpListener.cpp
|
||||
td/net/UdpServer.cpp
|
||||
|
||||
td/net/FdListener.h
|
||||
td/net/TcpListener.h
|
||||
td/net/UdpServer.h
|
||||
)
|
||||
|
||||
add_library(tdnet STATIC ${TDNET_SOURCE})
|
||||
target_include_directories(tdnet PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
|
||||
target_link_libraries(tdnet PUBLIC tdactor)
|
||||
|
||||
add_executable(tcp_ping_pong example/tcp_ping_pong.cpp)
|
||||
target_link_libraries(tcp_ping_pong PRIVATE tdactor tdnet)
|
||||
|
||||
add_executable(udp_ping_pong example/udp_ping_pong.cpp)
|
||||
target_link_libraries(udp_ping_pong PRIVATE tdactor tdnet)
|
||||
|
||||
set(NET_TEST_SOURCE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/test/net-test.cpp
|
||||
PARENT_SCOPE
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue