# build libdebug_plugin.so
add_library(debug_plugin SHARED debug_plugin.cpp)
target_link_libraries(debug_plugin stellar_devel session_manager packet)
target_include_directories(debug_plugin PUBLIC ${CMAKE_SOURCE_DIR}/include/)
target_include_directories(debug_plugin PUBLIC ${CMAKE_SOURCE_DIR}/infra/core/utils)
set_target_properties(debug_plugin PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/version.map")

file(COPY ./conf/ DESTINATION ./conf/)