mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-26 20:53:23 -08:00
Split filters into libraries where applicable. (#6293)
* Split filters into libraries where applicable. Took 23 minutes Took 2 minutes * Include filter string. Took 5 minutes --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
@@ -31,20 +31,11 @@ add_test(NAME carddatabase_test COMMAND carddatabase_test)
|
||||
# ------------------------
|
||||
# Filter String Test
|
||||
# ------------------------
|
||||
add_executable(
|
||||
filter_string_test
|
||||
${MOCKS_SOURCES}
|
||||
${VERSION_STRING_CPP}
|
||||
../../cockatrice/src/filters/filter_card.cpp
|
||||
../../cockatrice/src/filters/filter_string.cpp
|
||||
../../cockatrice/src/filters/filter_tree.cpp
|
||||
filter_string_test.cpp
|
||||
mocks.cpp
|
||||
)
|
||||
add_executable(filter_string_test ${MOCKS_SOURCES} ${VERSION_STRING_CPP} filter_string_test.cpp mocks.cpp)
|
||||
|
||||
target_link_libraries(
|
||||
filter_string_test
|
||||
PRIVATE libcockatrice_card
|
||||
PRIVATE libcockatrice_filters
|
||||
PRIVATE Threads::Threads
|
||||
PRIVATE ${GTEST_BOTH_LIBRARIES}
|
||||
PRIVATE ${TEST_QT_MODULES}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#include "../../cockatrice/src/filters/filter_string.h"
|
||||
#include "mocks.h"
|
||||
#include "test_card_database_path_provider.h"
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
#include <libcockatrice/filters/filter_string.h>
|
||||
#include <libcockatrice/interfaces/noop_card_preference_provider.h>
|
||||
#include <libcockatrice/interfaces/noop_card_set_priority_controller.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user