Files
Card-Collection-Manager-3/tests/CMakeLists.txt
T
2026-05-09 19:32:18 +02:00

41 lines
1.1 KiB
CMake

# Unit tests for ccm_core. Wx and infra-bound tests are out of scope here -
# everything in this target operates against the ccm_core ports/services using
# in-memory fakes, so the suite is fast and hermetic.
add_executable(ccm_core_tests
fakes/InMemoryFileSystem.cpp
fs_names_tests.cpp
domain_json_tests.cpp
image_service_tests.cpp
collection_service_tests.cpp
config_service_tests.cpp
json_collection_repository_tests.cpp
json_set_repository_tests.cpp
set_service_tests.cpp
magic_set_source_tests.cpp
magic_card_preview_source_tests.cpp
card_preview_service_tests.cpp
local_preview_byte_cache_tests.cpp
pokemon_set_source_tests.cpp
pokemon_card_preview_source_tests.cpp
yugioh_set_source_tests.cpp
yugioh_card_preview_source_tests.cpp
card_sorter_tests.cpp
card_filter_tests.cpp
main.cpp
)
target_include_directories(ccm_core_tests PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(ccm_core_tests
PRIVATE
ccm_core
doctest::doctest
ccm_warnings
)
include(${doctest_SOURCE_DIR}/scripts/cmake/doctest.cmake)
doctest_discover_tests(ccm_core_tests)