1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-13 03:32:22 +00:00
ton/storage/storage-daemon/CMakeLists.txt
neodix42 5f51d3d04f
Remove redundant linking dependencies (#1198)
* 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
2024-09-23 17:31:01 +03:00

31 lines
1 KiB
CMake

cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
add_executable(embed-provider-code smartcont/embed-provider-code.cpp)
add_custom_command(
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND embed-provider-code smartcont/storage-provider-code.boc smartcont/provider-code.h
COMMENT "Generate provider-code.h"
DEPENDS embed-provider-code smartcont/storage-provider-code.boc
OUTPUT smartcont/provider-code.h
)
set(STORAGE_DAEMON_SOURCE
storage-daemon.cpp
StorageManager.h
StorageManager.cpp
StorageProvider.h
StorageProvider.cpp
smc-util.h
smc-util.cpp
smartcont/provider-code.h)
set(STORAGE_DAEMON_CLI_SOURCE
storage-daemon-cli.cpp
)
add_executable(storage-daemon ${STORAGE_DAEMON_SOURCE})
target_link_libraries(storage-daemon storage overlay tdutils tdactor adnl tl_api dht rldp rldp2 fift-lib memprof git tonlib)
add_executable(storage-daemon-cli ${STORAGE_DAEMON_CLI_SOURCE})
target_link_libraries(storage-daemon-cli tdutils tdactor adnllite tl_api tl_lite_api tl-lite-utils ton_block terminal git)