# ============================================================ # 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 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 ${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 )