Files
XCEngine/tests/Core/Asset/CMakeLists.txt

56 lines
1.3 KiB
CMake
Raw Permalink Normal View History

# ============================================================
# Core/Asset Tests
# ============================================================
set(ASSET_TEST_SOURCES
test_artifact_container.cpp
test_iresource.cpp
test_resource_types.cpp
test_resource_guid.cpp
test_resource_handle.cpp
2026-04-02 18:50:41 +08:00
test_resource_manager.cpp
test_resource_cache.cpp
test_resource_dependency.cpp
test_shader_compilation_cache.cpp
)
add_executable(asset_tests ${ASSET_TEST_SOURCES})
if(MSVC)
set_target_properties(asset_tests PROPERTIES
LINK_FLAGS "/NODEFAULTLIB:libcpmt.lib /NODEFAULTLIB:libcmt.lib"
)
endif()
target_link_libraries(asset_tests
PRIVATE
XCEngine
GTest::gtest
GTest::gtest_main
)
target_include_directories(asset_tests PRIVATE
${CMAKE_SOURCE_DIR}/engine/include
2026-03-29 01:36:53 +08:00
${CMAKE_SOURCE_DIR}/tests/Fixtures
)
include(GoogleTest)
gtest_discover_tests(asset_tests)
add_executable(artifact_inspect artifact_inspect.cpp)
if(MSVC)
set_target_properties(artifact_inspect PROPERTIES
LINK_FLAGS "/NODEFAULTLIB:libcpmt.lib /NODEFAULTLIB:libcmt.lib"
)
endif()
target_link_libraries(artifact_inspect
PRIVATE
XCEngine
)
target_include_directories(artifact_inspect PRIVATE
${CMAKE_SOURCE_DIR}/engine/include
)