aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/directx12-agility/usage
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/directx12-agility/usage
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/directx12-agility/usage')
-rw-r--r--vcpkg/ports/directx12-agility/usage14
1 files changed, 14 insertions, 0 deletions
diff --git a/vcpkg/ports/directx12-agility/usage b/vcpkg/ports/directx12-agility/usage
new file mode 100644
index 0000000..4ba0348
--- /dev/null
+++ b/vcpkg/ports/directx12-agility/usage
@@ -0,0 +1,14 @@
+The DirectX 12 Agility SDK package provides CMake targets:
+
+ find_package(directx-headers CONFIG REQUIRED)
+ find_package(directx12-agility CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE Microsoft::DirectX-Headers Microsoft::DirectX-Guids Microsoft::DirectX12-Agility)
+
+ if(TARGET Microsoft::DirectX12-Agility)
+ file(MAKE_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/D3D12")
+ add_custom_command(TARGET main POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_PROPERTY:Microsoft::DirectX12-Core,IMPORTED_LOCATION_RELEASE> $<TARGET_FILE_DIR:main>/D3D12
+ COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_PROPERTY:Microsoft::DirectX12-Layers,IMPORTED_LOCATION_DEBUG> $<TARGET_FILE_DIR:main>/D3D12
+ COMMAND_EXPAND_LISTS
+ )
+ endif()