mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-24 05:07:54 +08:00
4cca179bd7
* [spirv-tools] Lower-case dirs for cmake config * Simplify CMake config fixup * Add usage * Update versions * [shaderc] Minor fixes * Fix package imports in build and exported config * Add usage - shaderc_util is a private lib The port never installed this lib's headers. * Fix pc file installation * Update versions * [spirv-tools] Add tools feature * [spirv-tools] Fix exported cmake config * [shaderc] Fis SPIRV-Tools target * Fix tools feature
23 lines
886 B
Plaintext
23 lines
886 B
Plaintext
spirv-tools provides CMake targets:
|
|
|
|
find_package(SPIRV-Tools CONFIG REQUIRED)
|
|
# The static libary is always available.
|
|
# It offers full public symbol visibility.
|
|
target_link_libraries(main PRIVATE SPIRV-Tools-static)
|
|
# In triplets with dynamic library linkage, there is also a shared libary.
|
|
target_link_libraries(main PRIVATE SPIRV-Tools-shared)
|
|
|
|
# The following libraries are static and depend on SPIRV-Tools-static.
|
|
|
|
find_package(SPIRV-Tools-link CONFIG REQUIRED)
|
|
target_link_libraries(main PRIVATE SPIRV-Tools-link)
|
|
|
|
find_package(SPIRV-Tools-lint CONFIG REQUIRED)
|
|
target_link_libraries(main PRIVATE SPIRV-Tools-lint)
|
|
|
|
find_package(SPIRV-Tools-opt CONFIG REQUIRED)
|
|
target_link_libraries(main PRIVATE SPIRV-Tools-opt)
|
|
|
|
find_package(SPIRV-Tools-reduce CONFIG REQUIRED)
|
|
target_link_libraries(main PRIVATE SPIRV-Tools-reduce)
|