mirror of
				https://github.com/ton-blockchain/ton
				synced 2025-03-09 15:40:10 +00:00 
			
		
		
		
	* 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
		
			
				
	
	
		
			58 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			58 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			CMake
		
	
	
	
	
	
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
 | 
						|
 | 
						|
if (NOT OPENSSL_FOUND)
 | 
						|
  find_package(OpenSSL REQUIRED)
 | 
						|
endif()
 | 
						|
 | 
						|
 | 
						|
set(STORAGE_SOURCE
 | 
						|
  LoadSpeed.cpp
 | 
						|
  MerkleTree.cpp
 | 
						|
  MicrochunkTree.cpp
 | 
						|
  NodeActor.cpp
 | 
						|
  PeerActor.cpp
 | 
						|
  PeerState.cpp
 | 
						|
  SpeedLimiter.cpp
 | 
						|
  Torrent.cpp
 | 
						|
  TorrentCreator.cpp
 | 
						|
  TorrentHeader.cpp
 | 
						|
  TorrentInfo.cpp
 | 
						|
  TorrentMeta.cpp
 | 
						|
 | 
						|
  db.h
 | 
						|
  Bitset.h
 | 
						|
  LoadSpeed.h
 | 
						|
  MerkleTree.h
 | 
						|
  NodeActor.h
 | 
						|
  PartsHelper.h
 | 
						|
  PeerActor.h
 | 
						|
  PeerState.h
 | 
						|
  SpeedLimiter.h
 | 
						|
  Torrent.h
 | 
						|
  TorrentCreator.h
 | 
						|
  TorrentHeader.h
 | 
						|
  TorrentInfo.h
 | 
						|
  TorrentMeta.h
 | 
						|
  PeerManager.h
 | 
						|
  MicrochunkTree.h)
 | 
						|
set(STORAGE_CLI_SOURCE
 | 
						|
  storage-cli.cpp
 | 
						|
)
 | 
						|
 | 
						|
add_library(storage STATIC ${STORAGE_SOURCE})
 | 
						|
target_link_libraries(storage tdutils tdactor tddb ton_crypto tl_api ${JEMALLOC_LIBRARIES})
 | 
						|
target_include_directories(storage PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
 | 
						|
)
 | 
						|
 | 
						|
add_executable(storage-cli ${STORAGE_CLI_SOURCE})
 | 
						|
target_link_libraries(storage-cli storage overlay tdutils tdactor adnl tl_api dht rldp rldp2 fift-lib memprof terminal git ${JEMALLOC_LIBRARIES})
 | 
						|
 | 
						|
set(STORAGE_TEST_SOURCE
 | 
						|
  ${CMAKE_CURRENT_SOURCE_DIR}/test/storage.cpp
 | 
						|
  PARENT_SCOPE
 | 
						|
)
 | 
						|
 | 
						|
add_subdirectory(storage-daemon)
 | 
						|
 | 
						|
# Do not install it yet
 | 
						|
install(TARGETS storage-cli storage-daemon storage-daemon-cli RUNTIME DESTINATION bin)
 |