1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-12 19:22:37 +00:00
ton/http/CMakeLists.txt
SpyCheese 5847897b37
Various changes in TVM, github builds and tests (#793)
* Bugfixes in TVM and node

* Upgrade to C++17

* Improve GitHub builds

* Fix existing tests and partially integrate them into builds

---------

Co-authored-by: neodiX42 <namlem@gmail.com>
Co-authored-by: EmelyanenkoK <emelyanenko.kirill@gmail.com>
2023-11-03 14:43:34 +03:00

27 lines
787 B
CMake

cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
set(HTTP_SOURCE
http.h
http.cpp
http-connection.h
http-connection.cpp
http-inbound-connection.h
http-inbound-connection.cpp
http-outbound-connection.h
http-outbound-connection.cpp
http-server.h
http-server.cpp
http-client.h
http-client.hpp
http-client.cpp
)
add_library(tonhttp STATIC ${HTTP_SOURCE})
target_include_directories(tonhttp PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..>)
target_link_libraries(tonhttp PUBLIC tdactor ton_crypto tl_api tdnet )
add_executable(http-proxy http-proxy.cpp)
target_include_directories(http-proxy PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..>)
target_link_libraries(http-proxy PRIVATE tonhttp git)
install(TARGETS http-proxy RUNTIME DESTINATION bin)