fix: CMakeLists.txt 自动拷贝测试脚本和GT.ppm
- 添加 run.bat、compare_ppm.py、GT.ppm 到输出目录 - 确保构建后可以直接运行测试
This commit is contained in:
@@ -39,3 +39,16 @@ add_custom_command(TARGET D3D12 POST_BUILD
|
||||
${CMAKE_SOURCE_DIR}/tests/D3D12/Res
|
||||
$<TARGET_FILE_DIR:D3D12>/Res
|
||||
)
|
||||
|
||||
# Copy test scripts to output directory
|
||||
add_custom_command(TARGET D3D12 POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
${CMAKE_SOURCE_DIR}/tests/D3D12/run.bat
|
||||
$<TARGET_FILE_DIR:D3D12>/run.bat
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
${CMAKE_SOURCE_DIR}/tests/D3D12/compare_ppm.py
|
||||
$<TARGET_FILE_DIR:D3D12>/compare_ppm.py
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
${CMAKE_SOURCE_DIR}/tests/D3D12/GT.ppm
|
||||
$<TARGET_FILE_DIR:D3D12>/GT.ppm
|
||||
)
|
||||
|
||||
BIN
tests/D3D12/GT.ppm
Normal file
BIN
tests/D3D12/GT.ppm
Normal file
Binary file not shown.
Reference in New Issue
Block a user