# Sample Plugin compilation
add_library(DataBasePlugin SHARED
    DataBasePlugin.cpp
)

target_link_libraries(DataBasePlugin nlohmann_json::nlohmann_json)
target_include_directories(DataBasePlugin PUBLIC ${CMAKE_SOURCE_DIR}/external/rocksdbwrapper)

# Set the output directory for the plugins
set_target_properties(DataBasePlugin PROPERTIES
    LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins
)