2024-01-02 14: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-21 22:39:47 -07:00
|
|
|
|
|
|
|
find_package(directxtex CONFIG REQUIRED)
|
|
|
|
target_link_libraries(main PRIVATE Microsoft::DirectXTex)
|
2024-03-11 20:16:53 -07: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()
|