add_executable( producer_node main.cpp ) if( UNIX AND NOT APPLE ) set(rt_library rt ) endif() find_package( Gperftools QUIET ) if( GPERFTOOLS_FOUND ) message( STATUS "Found gperftools; compiling producer_node with TCMalloc") list( APPEND PLATFORM_SPECIFIC_LIBS tcmalloc ) endif() # We have to link against eos_debug_producer because deficiency in our API infrastructure doesn't allow plugins to be fully abstracted #246 target_link_libraries( producer_node PRIVATE eos_app eos_producer eos_chain eos_debug_producer eos_egenesis_full fc ${CMAKE_DL_LIBS} ${PLATFORM_SPECIFIC_LIBS} ) install( TARGETS producer_node RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib )