set(SOURCE stellar_config.c stellar_stat.c stellar_core.c)
set(LIBRARY session_manager plugin_manager ip_reassembly packet_io snowflake packet pthread fieldstat4 toml nmx_pool)

set(PLUGIN http glimpse_detector)

add_library(core STATIC ${SOURCE})
target_link_libraries(core PUBLIC ${LIBRARY})

add_library(stellar_devel SHARED ${SOURCE})
set_target_properties(stellar_devel PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/version.map")
target_link_libraries(stellar_devel PRIVATE -Wl,--whole-archive ${LIBRARY} -Wl,--no-whole-archive)
