[Server] Share one in-memory database interface across the server tests

This commit is contained in:
Lukas Brübach 2026-11-10 03:06:08 +01:00
parent 5565f21b39
commit 1173763af4
10 changed files with 200 additions and 170 deletions

View file

@ -0,0 +1,12 @@
set(HEADERS libcockatrice/server/dev/servatrice_in_memory_database_interface.h)
add_library(
libcockatrice_server_dev STATIC ${HEADERS} libcockatrice/server/dev/servatrice_in_memory_database_interface.cpp
)
target_include_directories(libcockatrice_server_dev PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(libcockatrice_server_dev PUBLIC libcockatrice_network_server_remote)
# Dev-only code: linked by the server tests and the servatrice-dev executable, never by the shipped
# servatrice binary.