mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-14 20:22:19 +00:00
* 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>
28 lines
1 KiB
CMake
28 lines
1 KiB
CMake
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
|
|
|
|
option(NIX "Use \"ON\" for a static build." OFF)
|
|
|
|
set(BLOCHAIN_EXPLORER_SOURCE
|
|
blockchain-explorer.cpp
|
|
blockchain-explorer.hpp
|
|
blockchain-explorer-http.cpp
|
|
blockchain-explorer-http.hpp
|
|
blockchain-explorer-query.cpp
|
|
blockchain-explorer-query.hpp
|
|
)
|
|
|
|
add_executable(blockchain-explorer ${BLOCHAIN_EXPLORER_SOURCE})
|
|
|
|
if (NIX)
|
|
find_package(PkgConfig REQUIRED)
|
|
pkg_check_modules(MHD libmicrohttpd)
|
|
target_include_directories(blockchain-explorer PUBLIC ${MHD_INCLUDE_DIRS} ${MHD_STATIC_INCLUDE_DIRS})
|
|
target_link_libraries(blockchain-explorer tdutils tdactor adnllite tl_lite_api tl-lite-utils ton_crypto ton_block ${MHD_LIBRARIES} ${MHD_STATIC_LIBRARIES})
|
|
else()
|
|
find_package(MHD)
|
|
target_include_directories(blockchain-explorer PUBLIC ${MHD_INCLUDE_DIRS})
|
|
target_link_libraries(blockchain-explorer tdutils tdactor adnllite tl_lite_api tl-lite-utils ton_crypto ton_block ${MHD_LIBRARIES})
|
|
endif()
|
|
|
|
install(TARGETS blockchain-explorer RUNTIME DESTINATION bin)
|
|
|