2019-10-09 20:24:36 +00:00
|
|
|
file(GLOB HEADERS "include/graphene/peerplays_sidechain/*.hpp")
|
2019-09-11 18:29:48 +00:00
|
|
|
|
|
|
|
|
add_library( peerplays_sidechain
|
|
|
|
|
peerplays_sidechain_plugin.cpp
|
2019-12-04 17:52:00 +00:00
|
|
|
sidechain_net_manager.cpp
|
|
|
|
|
sidechain_net_handler.cpp
|
|
|
|
|
sidechain_net_handler_bitcoin.cpp
|
2020-02-14 00:25:24 +00:00
|
|
|
sidechain_net_handler_peerplays.cpp
|
2020-02-19 11:46:27 +00:00
|
|
|
bitcoin_utils.cpp
|
2019-09-11 18:29:48 +00:00
|
|
|
)
|
|
|
|
|
|
2020-02-11 15:56:05 +00:00
|
|
|
if (SUPPORT_MULTIPLE_SONS)
|
|
|
|
|
message ("Multiple SONs per software instance are supported")
|
|
|
|
|
target_compile_definitions(peerplays_sidechain PRIVATE SUPPORT_MULTIPLE_SONS)
|
|
|
|
|
endif()
|
|
|
|
|
unset(SUPPORT_MULTIPLE_SONS)
|
|
|
|
|
unset(SUPPORT_MULTIPLE_SONS CACHE)
|
|
|
|
|
|
2019-12-04 17:52:00 +00:00
|
|
|
target_link_libraries( peerplays_sidechain graphene_chain graphene_app fc zmq )
|
2019-09-11 18:29:48 +00:00
|
|
|
target_include_directories( peerplays_sidechain
|
|
|
|
|
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" )
|
|
|
|
|
|
|
|
|
|
install( TARGETS
|
|
|
|
|
peerplays_sidechain
|
|
|
|
|
|
|
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
|
LIBRARY DESTINATION lib
|
|
|
|
|
ARCHIVE DESTINATION lib
|
|
|
|
|
)
|
|
|
|
|
INSTALL( FILES ${HEADERS} DESTINATION "include/graphene/peerplays_sidechain" )
|
|
|
|
|
|