Files
XCEngine/tests/Resources/CMakeLists.txt
ssdfasd fc7c8f6797 feat: 完成资源系统导入设置类实现
- 新增 ImportSettings 基类
- 新增 TextureImportSettings 纹理导入设置类
- 新增 MeshImportSettings 网格导入设置类
- 新增 ResourcePath 资源路径类
- 完善 CMakeLists.txt 配置
- 新增对应单元测试 (45个测试用例)
2026-03-18 13:39:32 +08:00

52 lines
1.3 KiB
CMake

# ============================================================
# Resources Library Tests
# ============================================================
set(RESOURCES_TEST_SOURCES
test_resource_types.cpp
test_resource_guid.cpp
test_iresource.cpp
test_resource_handle.cpp
test_resource_cache.cpp
test_iresource_loader.cpp
test_texture.cpp
test_mesh.cpp
test_audio_clip.cpp
test_resource_filesystem.cpp
test_file_archive.cpp
test_shader.cpp
test_material.cpp
test_texture_loader.cpp
test_mesh_loader.cpp
test_audio_loader.cpp
test_shader_loader.cpp
test_material_loader.cpp
test_resource_package.cpp
test_resource_dependency.cpp
test_texture_import_settings.cpp
test_mesh_import_settings.cpp
test_resource_path.cpp
)
add_executable(xcengine_resources_tests ${RESOURCES_TEST_SOURCES})
if(MSVC)
set_target_properties(xcengine_resources_tests PROPERTIES
LINK_FLAGS "/NODEFAULTLIB:libcpmt.lib /NODEFAULTLIB:libcmt.lib"
)
endif()
target_link_libraries(xcengine_resources_tests
PRIVATE
XCEngine
GTest::gtest
GTest::gtest_main
)
target_include_directories(xcengine_resources_tests PRIVATE
${CMAKE_SOURCE_DIR}/engine/include
${CMAKE_SOURCE_DIR}/tests/fixtures
)
add_test(NAME ResourcesTests COMMAND xcengine_resources_tests)