Update cipt parsing (#5712)

* refactor

* move thing out

* write unit tests

* get thing to work

* optimization?

* fix build failure
This commit is contained in:
RickyRister 2025-03-14 18:44:13 -07:00 committed by GitHub
parent 068465143b
commit 3a11ccb854
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 305 additions and 3 deletions

View file

@ -0,0 +1,11 @@
add_executable(parse_cipt_test ../../oracle/src/parsehelpers.cpp parse_cipt_test.cpp)
if(NOT GTEST_FOUND)
add_dependencies(parse_cipt_test gtest)
endif()
set(TEST_QT_MODULES ${COCKATRICE_QT_VERSION_NAME}::Widgets)
target_link_libraries(parse_cipt_test cockatrice_common Threads::Threads ${GTEST_BOTH_LIBRARIES} ${TEST_QT_MODULES})
add_test(NAME parse_cipt_test COMMAND parse_cipt_test)