- TEST_SPEC.md: Updated test directory structure to reflect Core/Asset, Core/IO, and Resources/<Type> subdirectories - TEST_SPEC.md: Updated module names and test counts (852 total) - TEST_SPEC.md: Updated build commands for new Resources subdirectories - README.md: Updated engine structure with Core/Asset/ and Core/IO/ - README.md: Updated Resources section with layered architecture - README.md: Updated test coverage table with accurate counts
35 lines
773 B
CMake
35 lines
773 B
CMake
# ============================================================
|
|
# Core/IO Tests
|
|
# ============================================================
|
|
|
|
set(IO_TEST_SOURCES
|
|
test_iresource_loader.cpp
|
|
test_resource_path.cpp
|
|
test_resource_filesystem.cpp
|
|
test_file_archive.cpp
|
|
test_resource_package.cpp
|
|
)
|
|
|
|
add_executable(io_tests ${IO_TEST_SOURCES})
|
|
|
|
if(MSVC)
|
|
set_target_properties(io_tests PROPERTIES
|
|
LINK_FLAGS "/NODEFAULTLIB:libcpmt.lib /NODEFAULTLIB:libcmt.lib"
|
|
)
|
|
endif()
|
|
|
|
target_link_libraries(io_tests
|
|
PRIVATE
|
|
XCEngine
|
|
GTest::gtest
|
|
GTest::gtest_main
|
|
)
|
|
|
|
target_include_directories(io_tests PRIVATE
|
|
${CMAKE_SOURCE_DIR}/engine/include
|
|
${CMAKE_SOURCE_DIR}/tests/fixtures
|
|
)
|
|
|
|
include(GoogleTest)
|
|
gtest_discover_tests(io_tests)
|