2015-06-08 15:50:35 +00:00
|
|
|
add_executable( witness_node main.cpp )
|
|
|
|
|
if( UNIX AND NOT APPLE )
|
|
|
|
|
set(rt_library rt )
|
|
|
|
|
endif()
|
2015-06-23 19:18:25 +00:00
|
|
|
|
|
|
|
|
find_package( Gperftools QUIET )
|
|
|
|
|
if( GPERFTOOLS_FOUND )
|
|
|
|
|
message( STATUS "Found gperftools; compiling witness_node with TCMalloc")
|
|
|
|
|
list( APPEND PLATFORM_SPECIFIC_LIBS tcmalloc )
|
|
|
|
|
endif()
|
2015-06-08 15:50:35 +00:00
|
|
|
|
2016-03-03 19:12:27 +00:00
|
|
|
# We have to link against graphene_debug_witness because deficiency in our API infrastructure doesn't allow plugins to be fully abstracted #246
|
2024-01-18 06:42:58 +00:00
|
|
|
set(LIBRARIES graphene_app graphene_egenesis_full graphene_snapshot graphene_delayed_node graphene_witness ${PLATFORM_SPECIFIC_LIBS})
|
|
|
|
|
|
|
|
|
|
if(NOT DEFINED DISABLE_PEERPLAYS_SIDECHAIN_PLUGIN)
|
|
|
|
|
list(APPEND LIBRARIES peerplays_sidechain)
|
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
|
|
target_link_libraries( witness_node PRIVATE ${LIBRARIES} )
|
2017-06-01 15:05:43 +00:00
|
|
|
# also add dependencies to graphene_generate_genesis graphene_generate_uia_sharedrop_genesis if you want those plugins
|
2015-08-03 15:11:27 +00:00
|
|
|
|
|
|
|
|
install( TARGETS
|
|
|
|
|
witness_node
|
|
|
|
|
|
|
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
|
LIBRARY DESTINATION lib
|
|
|
|
|
ARCHIVE DESTINATION lib
|
|
|
|
|
)
|