diff --git a/core/libs/prx/libSceAgcDriver/CMakeLists.txt b/core/libs/prx/libSceAgcDriver/CMakeLists.txt index 8d92618a221b..ee5aebc65979 100644 --- a/core/libs/prx/libSceAgcDriver/CMakeLists.txt +++ b/core/libs/prx/libSceAgcDriver/CMakeLists.txt @@ -2055,6 +2055,18 @@ foreach(agcExecutionTestSource IN LISTS agcExecutionTestSources) target_link_libraries(${agcExecutionTest} PRIVATE libSceAgcDriver SDL2-static libc) set_target_properties(${agcExecutionTest} PROPERTIES CXX_EXTENSIONS OFF) configure_windows_unwind(${agcExecutionTest}) + if(agcExecutionTests) + list(GET agcExecutionTests 0 agcExecutionPchTarget) + target_precompile_headers(${agcExecutionTest} REUSE_FROM ${agcExecutionPchTarget}) + else() + target_precompile_headers(${agcExecutionTest} PRIVATE + ${CMAKE_CURRENT_SOURCE_DIR}/tests/execution/VulkanTestDevice.hpp + ) + endif() + if(CMAKE_CXX_COMPILER_LAUNCHER MATCHES "ccache") + set_target_properties(${agcExecutionTest} PROPERTIES CXX_COMPILER_LAUNCHER + "${CMAKE_COMMAND};-E;env;CCACHE_SLOPPINESS=pch_defines,time_macros;${CMAKE_CXX_COMPILER_LAUNCHER}") + endif() list(APPEND agcExecutionTests ${agcExecutionTest}) endforeach() if(BUILD_TESTING)