-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
17 lines (12 loc) · 908 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
project(tongate)
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -g -fno-omit-frame-pointer")
add_subdirectory(ton EXCLUDE_FROM_ALL)
add_subdirectory(src EXCLUDE_FROM_ALL)
add_executable(tongate src/tongate.cpp src/server.cpp)
target_include_directories(tongate PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/ton/ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/tongate/>)
target_link_libraries(tongate PUBLIC tdactor ton_crypto tl_api tdnet common tdfec overlay tl-utils adnl dht adnltest)
add_executable(client src/client.cpp)
target_include_directories(client PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/ton/> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/tongate/)
target_link_libraries(client PUBLIC tdactor ton_crypto tl_api tdnet common tdfec overlay tl-utils adnl dht adnltest tl-lite-utils)