dncurrency/nano/node/CMakeLists.txt
cryptocode b8cde9f286
Improve representative crawler (#1803)
* Improve rep crawling

* Add count-check to test

* Move tags and template alias into class, improve modification of items via non-unique index
2019-03-06 20:31:54 +01:00

88 lines
1.6 KiB
CMake

if (NANO_SECURE_RPC OR RAIBLOCKS_SECURE_RPC)
set (secure_rpc_sources rpc_secure.cpp rpc_secure.hpp)
endif ()
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
# No opencl
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
set (platform_sources plat/windows/openclapi.cpp)
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set (platform_sources plat/posix/openclapi.cpp)
elseif (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
set (platform_sources plat/posix/openclapi.cpp)
else ()
error ("Unknown platform: ${CMAKE_SYSTEM_NAME}")
endif ()
add_library (node
${platform_sources}
${secure_rpc_sources}
blockprocessor.cpp
blockprocessor.hpp
bootstrap.cpp
bootstrap.hpp
cli.hpp
cli.cpp
common.cpp
common.hpp
daemonconfig.hpp
daemonconfig.cpp
ipc.hpp
ipc.cpp
ipcconfig.hpp
ipcconfig.cpp
lmdb.cpp
lmdb.hpp
logging.cpp
logging.hpp
nodeconfig.hpp
nodeconfig.cpp
node.hpp
node.cpp
openclwork.cpp
openclwork.hpp
peers.cpp
peers.hpp
portmapping.hpp
portmapping.cpp
repcrawler.hpp
repcrawler.cpp
rpc.hpp
rpc.cpp
rpcconfig.hpp
rpcconfig.cpp
testing.hpp
testing.cpp
signatures.hpp
signatures.cpp
wallet.hpp
wallet.cpp
stats.hpp
stats.cpp
voting.hpp
voting.cpp
working.hpp
xorshift.hpp)
target_link_libraries (node
secure
nano_lib
libminiupnpc-static
argon2
lmdb
${OPENSSL_LIBRARIES}
Boost::filesystem
Boost::log
Boost::log_setup
Boost::program_options
Boost::system
Boost::thread
Boost::boost
${CMAKE_DL_LIBS}
)
target_compile_definitions(node
PRIVATE
-DNANO_VERSION_MAJOR=${CPACK_PACKAGE_VERSION_MAJOR}
-DNANO_VERSION_MINOR=${CPACK_PACKAGE_VERSION_MINOR}
-DNANO_VERSION_PATCH=${CPACK_PACKAGE_VERSION_PATCH})