mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 11:19:01 +08:00
2f29964660
In addition to updating for the latest release on GitHub, this adds support for three new *features*: * **jpeg** this adds JPEG support for Linux (Windows already supports JPEG via the built-in WIC codec) * **png** this adds PNG support for Linux (Windows already supports PNG via the built-in WIC codec) * **xbox** this builds the library for PC but with Xbox extensions for development. Requires the Microsoft GDKX. By default it targets Xbox Series X|S. To target Xbox One instead, you can use a triplet variable as described in the update usage.
12 lines
436 B
Plaintext
12 lines
436 B
Plaintext
The DirectXTex package provides CMake targets:
|
|
|
|
find_package(directxtex CONFIG REQUIRED)
|
|
target_link_libraries(main PRIVATE Microsoft::DirectXTex)
|
|
|
|
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()
|