Fix Essence test linker error by including generated version_string.cpp

This commit is contained in:
Christian Daniel Jensen 2026-11-02 06:01:10 -07:00
parent fd352db2f5
commit ba7da5ef8f

View file

@ -172,7 +172,13 @@ endfunction()
# --- Unit tests ------------------------------------------------------------------
cockatrice_add_test(NAME expression_test SOURCES expression_test.cpp LIBS libcockatrice_utility)
cockatrice_add_test(NAME essence_types_test SOURCES essence_types_test.cpp LIBS libcockatrice_card)
# XML v3/v4 exporters in libcockatrice_card reference VERSION_STRING.
# Link the same generated version implementation used by the client/server.
cockatrice_add_test(
NAME essence_types_test
SOURCES ${VERSION_STRING_CPP} essence_types_test.cpp
LIBS libcockatrice_card
)
cockatrice_add_test(NAME clamped_arithmetic_test SOURCES clamped_arithmetic_test.cpp LIBS libcockatrice_utility)
cockatrice_add_test(NAME test_age_formatting SOURCES test_age_formatting.cpp LIBS libcockatrice_utility)
cockatrice_add_test(NAME user_data_backup_test SOURCES user_data_backup_test.cpp LIBS libcockatrice_utility)