* Network selector * Make sure network option is checked before working path is called (migration). Also remove bool assignment from error. * Formatting * Fix merge error * Use network_params for RPC port config (rebase) * Formatting * Rebase * Rebase (debug_opencl, merge fix) * Rebase fix * post-rebase update
52 lines
1.3 KiB
CMake
52 lines
1.3 KiB
CMake
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|
set (platform_sources plat/default/priority.cpp plat/posix/perms.cpp plat/darwin/thread_role.cpp)
|
|
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
|
set (platform_sources plat/windows/priority.cpp plat/windows/perms.cpp plat/windows/thread_role.cpp)
|
|
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
|
set (platform_sources plat/linux/priority.cpp plat/posix/perms.cpp plat/linux/thread_role.cpp)
|
|
elseif (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
|
set (platform_sources plat/default/priority.cpp plat/posix/perms.cpp plat/freebsd/thread_role.cpp)
|
|
else ()
|
|
error ("Unknown platform: ${CMAKE_SYSTEM_NAME}")
|
|
endif ()
|
|
|
|
add_library (nano_lib
|
|
${platform_sources}
|
|
errors.hpp
|
|
errors.cpp
|
|
expected.hpp
|
|
blockbuilders.cpp
|
|
blockbuilders.hpp
|
|
blocks.cpp
|
|
blocks.hpp
|
|
config.hpp
|
|
config.cpp
|
|
interface.cpp
|
|
interface.h
|
|
jsonconfig.hpp
|
|
numbers.cpp
|
|
numbers.hpp
|
|
timer.hpp
|
|
utility.cpp
|
|
utility.hpp
|
|
work.hpp
|
|
work.cpp)
|
|
|
|
target_link_libraries (nano_lib
|
|
xxhash
|
|
blake2
|
|
${CRYPTOPP_LIBRARY}
|
|
Boost::boost)
|
|
|
|
target_compile_definitions(nano_lib
|
|
PUBLIC
|
|
-DACTIVE_NETWORK=${ACTIVE_NETWORK}
|
|
)
|
|
|
|
if ((NANO_GUI OR RAIBLOCKS_GUI) AND NOT APPLE)
|
|
install(TARGETS nano_lib
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib
|
|
)
|
|
endif()
|