2014-04-09 12:14:35 +00:00
|
|
|
add_definitions(-DSTATICLIB)
|
|
|
|
|
2015-07-15 12:23:00 +00:00
|
|
|
file(GLOB_RECURSE BlockchainExplorer BlockchainExplorer/*)
|
2015-05-27 12:08:46 +00:00
|
|
|
file(GLOB_RECURSE Common Common/*)
|
2015-07-30 15:22:07 +00:00
|
|
|
file(GLOB_RECURSE ConnectivityTool ConnectivityTool/*)
|
2015-05-27 12:08:46 +00:00
|
|
|
file(GLOB_RECURSE Crypto crypto/*)
|
2015-07-30 15:22:07 +00:00
|
|
|
file(GLOB_RECURSE CryptoNoteCore CryptoNoteCore/* CryptoNoteConfig.h)
|
|
|
|
file(GLOB_RECURSE CryptoNoteProtocol CryptoNoteProtocol/*)
|
|
|
|
file(GLOB_RECURSE Daemon Daemon/*)
|
2015-05-27 12:08:46 +00:00
|
|
|
file(GLOB_RECURSE Http HTTP/*)
|
|
|
|
file(GLOB_RECURSE InProcessNode InProcessNode/*)
|
|
|
|
file(GLOB_RECURSE Logging Logging/*)
|
2015-07-30 15:22:07 +00:00
|
|
|
file(GLOB_RECURSE NodeRpcProxy NodeRpcProxy/*)
|
|
|
|
file(GLOB_RECURSE P2p P2p/*)
|
|
|
|
file(GLOB_RECURSE Rpc Rpc/*)
|
|
|
|
file(GLOB_RECURSE Serialization Serialization/*)
|
|
|
|
file(GLOB_RECURSE SimpleWallet SimpleWallet/*)
|
2015-04-06 16:13:07 +00:00
|
|
|
if(MSVC)
|
2015-05-27 12:08:46 +00:00
|
|
|
file(GLOB_RECURSE System System/* Platform/Windows/System/*)
|
2015-04-06 16:13:07 +00:00
|
|
|
elseif(APPLE)
|
2015-05-27 12:08:46 +00:00
|
|
|
file(GLOB_RECURSE System System/* Platform/OSX/System/*)
|
2015-04-06 16:13:07 +00:00
|
|
|
else()
|
2015-05-27 12:08:46 +00:00
|
|
|
file(GLOB_RECURSE System System/* Platform/Linux/System/*)
|
2015-04-06 16:13:07 +00:00
|
|
|
endif()
|
2015-07-30 15:22:07 +00:00
|
|
|
file(GLOB_RECURSE Transfers Transfers/*)
|
|
|
|
file(GLOB_RECURSE Wallet Wallet/*)
|
|
|
|
file(GLOB_RECURSE WalletLegacy WalletLegacy/*)
|
2015-04-06 16:13:07 +00:00
|
|
|
|
2015-07-30 15:22:07 +00:00
|
|
|
file(GLOB_RECURSE JsonRpcServer JsonRpcServer/*)
|
2014-03-03 22:07:58 +00:00
|
|
|
|
2015-07-30 15:22:07 +00:00
|
|
|
file(GLOB_RECURSE PaymentGate PaymentGate/*)
|
|
|
|
file(GLOB_RECURSE PaymentGateService PaymentGateService/*)
|
2015-12-09 13:19:03 +00:00
|
|
|
file(GLOB_RECURSE Miner Miner/*)
|
2014-03-03 22:07:58 +00:00
|
|
|
|
2015-07-30 15:22:07 +00:00
|
|
|
source_group("" FILES $${Common} ${ConnectivityTool} ${Crypto} ${CryptoNoteCore} ${CryptoNoteProtocol} ${Daemon} ${JsonRpcServer} ${Http} ${Logging} ${NodeRpcProxy} ${P2p} ${Rpc} ${Serialization} ${SimpleWallet} ${System} ${Transfers} ${Wallet} ${WalletLegacy})
|
2014-06-25 17:21:42 +00:00
|
|
|
|
2015-07-15 12:23:00 +00:00
|
|
|
add_library(BlockchainExplorer ${BlockchainExplorer})
|
2015-05-27 12:08:46 +00:00
|
|
|
add_library(Common ${Common})
|
|
|
|
add_library(Crypto ${Crypto})
|
|
|
|
add_library(CryptoNoteCore ${CryptoNoteCore})
|
|
|
|
add_library(Http ${Http})
|
|
|
|
add_library(InProcessNode ${InProcessNode})
|
|
|
|
add_library(Logging ${Logging})
|
|
|
|
add_library(NodeRpcProxy ${NodeRpcProxy})
|
|
|
|
add_library(Rpc ${Rpc})
|
|
|
|
add_library(P2P ${CryptoNoteProtocol} ${P2p})
|
|
|
|
add_library(Serialization ${Serialization})
|
|
|
|
add_library(System ${System})
|
|
|
|
add_library(Transfers ${Transfers})
|
2015-07-30 15:22:07 +00:00
|
|
|
add_library(Wallet ${Wallet} ${WalletLegacy})
|
|
|
|
add_library(PaymentGate ${PaymentGate})
|
|
|
|
add_library(JsonRpcServer ${JsonRpcServer})
|
2014-06-25 17:21:42 +00:00
|
|
|
|
2015-07-15 12:23:00 +00:00
|
|
|
add_executable(ConnectivityTool ${ConnectivityTool})
|
2015-05-27 12:08:46 +00:00
|
|
|
add_executable(Daemon ${Daemon})
|
|
|
|
add_executable(SimpleWallet ${SimpleWallet})
|
2015-07-30 15:22:07 +00:00
|
|
|
add_executable(PaymentGateService ${PaymentGateService})
|
2015-12-09 13:19:03 +00:00
|
|
|
add_executable(Miner ${Miner})
|
2014-03-03 22:07:58 +00:00
|
|
|
|
2015-12-09 13:19:03 +00:00
|
|
|
if (MSVC)
|
|
|
|
target_link_libraries(System ws2_32)
|
|
|
|
endif ()
|
2015-04-06 16:13:07 +00:00
|
|
|
|
2017-12-28 20:14:37 +00:00
|
|
|
target_link_libraries(ConnectivityTool CryptoNoteCore Logging Crypto P2P Rpc Http Serialization Common System ${Boost_LIBRARIES})
|
2015-07-30 15:22:07 +00:00
|
|
|
target_link_libraries(Daemon CryptoNoteCore P2P Rpc Serialization System Http Logging Common Crypto upnpc-static BlockchainExplorer ${Boost_LIBRARIES})
|
2015-07-15 12:23:00 +00:00
|
|
|
target_link_libraries(SimpleWallet Wallet NodeRpcProxy Transfers Rpc Http Serialization CryptoNoteCore System Logging Common Crypto ${Boost_LIBRARIES})
|
2015-07-30 15:22:07 +00:00
|
|
|
target_link_libraries(PaymentGateService PaymentGate JsonRpcServer Wallet NodeRpcProxy Transfers CryptoNoteCore Crypto P2P Rpc Http Serialization System Logging Common InProcessNode upnpc-static BlockchainExplorer ${Boost_LIBRARIES})
|
2015-12-09 13:19:03 +00:00
|
|
|
target_link_libraries(Miner CryptoNoteCore Rpc Serialization System Http Logging Common Crypto ${Boost_LIBRARIES})
|
2014-06-25 17:21:42 +00:00
|
|
|
|
2015-05-27 12:08:46 +00:00
|
|
|
add_dependencies(Rpc version)
|
2014-03-03 22:07:58 +00:00
|
|
|
|
2015-05-27 12:08:46 +00:00
|
|
|
add_dependencies(ConnectivityTool version)
|
|
|
|
add_dependencies(Daemon version)
|
|
|
|
add_dependencies(SimpleWallet version)
|
2015-07-30 15:22:07 +00:00
|
|
|
add_dependencies(PaymentGateService version)
|
2015-05-27 12:08:46 +00:00
|
|
|
add_dependencies(P2P version)
|
|
|
|
|
|
|
|
set_property(TARGET ConnectivityTool PROPERTY OUTPUT_NAME "connectivity_tool")
|
2017-12-28 19:52:13 +00:00
|
|
|
set_property(TARGET SimpleWallet PROPERTY OUTPUT_NAME "daniwallet")
|
2015-07-30 15:22:07 +00:00
|
|
|
set_property(TARGET PaymentGateService PROPERTY OUTPUT_NAME "walletd")
|
2015-12-09 13:19:03 +00:00
|
|
|
set_property(TARGET Miner PROPERTY OUTPUT_NAME "miner")
|
2017-12-28 19:37:11 +00:00
|
|
|
set_property(TARGET Daemon PROPERTY OUTPUT_NAME "danicoind")
|