2024-01-03 06:37:52 +08:00
|
|
|
The DirectXTex package provides CMake targets:
|
[directxmesh, directxtex, directxtk, uvatlas, dxut, effects11] June 2023 update (#32033)
* [directxmesh, directxtex, directxtk, uvatlas, dxut, effects11] Update for June 13, 2023 release
* Minor format fix
* Update baseline
* Upstream fixes to CMake targets dependency handling
* Update baseline
2023-06-22 13:39:47 +08:00
|
|
|
|
|
|
|
find_package(directxtex CONFIG REQUIRED)
|
|
|
|
target_link_libraries(main PRIVATE Microsoft::DirectXTex)
|
2024-03-12 11:16:53 +08:00
|
|
|
|
|
|
|
For the 'xbox' feature, it defaults to targeting Xbox Series X|S. To set it to Xbox One,
|
|
|
|
create a custom triplet from x64-windows with the addition of the following:
|
|
|
|
|
|
|
|
if (PORT STREQUAL "directxtex")
|
|
|
|
set(DIRECTXTEX_XBOX_CONSOLE_TARGET "xboxone")
|
|
|
|
endif()
|