2015-06-08 15:50:35 +00:00
|
|
|
file(GLOB HEADERS "include/graphene/app/*.hpp")
|
2015-08-07 16:46:30 +00:00
|
|
|
file(GLOB EGENESIS_HEADERS "../egenesis/include/graphene/app/*.hpp")
|
2015-06-08 15:50:35 +00:00
|
|
|
|
|
|
|
|
add_library( graphene_app
|
|
|
|
|
api.cpp
|
|
|
|
|
application.cpp
|
2020-11-12 14:08:25 +00:00
|
|
|
config_util.cpp
|
2015-09-11 16:22:30 +00:00
|
|
|
database_api.cpp
|
2015-06-08 15:50:35 +00:00
|
|
|
plugin.cpp
|
2015-08-07 16:46:30 +00:00
|
|
|
${HEADERS}
|
|
|
|
|
${EGENESIS_HEADERS}
|
2015-06-08 15:50:35 +00:00
|
|
|
)
|
|
|
|
|
|
2016-03-03 19:12:27 +00:00
|
|
|
# need to link graphene_debug_witness because plugins aren't sufficiently isolated #246
|
2017-07-13 14:07:30 +00:00
|
|
|
#target_link_libraries( graphene_app graphene_market_history graphene_account_history graphene_chain fc graphene_db graphene_net graphene_utilities graphene_debug_witness )
|
2020-11-12 14:08:25 +00:00
|
|
|
target_link_libraries( graphene_app
|
|
|
|
|
PUBLIC graphene_net graphene_utilities
|
2022-04-05 03:22:34 +00:00
|
|
|
graphene_account_history graphene_accounts_list graphene_affiliate_stats graphene_bookie graphene_debug_witness graphene_elasticsearch graphene_es_objects graphene_generate_genesis graphene_market_history peerplays_sidechain )
|
2020-11-12 14:08:25 +00:00
|
|
|
|
2015-06-08 15:50:35 +00:00
|
|
|
target_include_directories( graphene_app
|
2015-08-07 16:46:30 +00:00
|
|
|
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include"
|
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../egenesis/include" )
|
2015-06-08 15:50:35 +00:00
|
|
|
|
|
|
|
|
if(MSVC)
|
2015-09-14 20:05:32 +00:00
|
|
|
set_source_files_properties( application.cpp api.cpp database_api.cpp PROPERTIES COMPILE_FLAGS "/bigobj" )
|
2015-06-08 15:50:35 +00:00
|
|
|
endif(MSVC)
|
2015-08-03 15:11:27 +00:00
|
|
|
|
|
|
|
|
INSTALL( TARGETS
|
|
|
|
|
graphene_app
|
|
|
|
|
|
|
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
|
LIBRARY DESTINATION lib
|
|
|
|
|
ARCHIVE DESTINATION lib
|
|
|
|
|
)
|
2016-03-17 22:08:27 +00:00
|
|
|
INSTALL( FILES ${HEADERS} DESTINATION "include/graphene/app" )
|
2020-11-12 14:08:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add_library( graphene_plugin
|
|
|
|
|
plugin.cpp
|
|
|
|
|
|
|
|
|
|
include/graphene/app/plugin.hpp
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_link_libraries( graphene_plugin
|
|
|
|
|
PUBLIC graphene_net graphene_utilities )
|
|
|
|
|
|
|
|
|
|
target_include_directories( graphene_plugin
|
|
|
|
|
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" )
|
|
|
|
|
|
|
|
|
|
INSTALL( TARGETS
|
|
|
|
|
graphene_app
|
|
|
|
|
|
|
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
|
LIBRARY DESTINATION lib
|
|
|
|
|
ARCHIVE DESTINATION lib
|
|
|
|
|
)
|