mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 08:39:01 +08:00
17 lines
774 B
CMake
17 lines
774 B
CMake
|
set(SHADERC_GLSLANG_DIR "" CACHE STRING "unused")
|
||
|
find_package(glslang CONFIG REQUIRED)
|
||
|
add_library(glslang ALIAS glslang::glslang)
|
||
|
add_library(HLSL ALIAS glslang::HLSL)
|
||
|
add_library(MachineIndependent ALIAS glslang::MachineIndependent)
|
||
|
add_library(OSDependent ALIAS glslang::OSDependent)
|
||
|
add_library(OGLCompiler ALIAS glslang::OGLCompiler)
|
||
|
add_library(SPIRV ALIAS glslang::SPIRV)
|
||
|
|
||
|
find_path(glslang_SOURCE_DIR glslang/Public/ShaderLang.h REQUIRED)
|
||
|
set(glslang_SOURCE_DIR "${glslang_SOURCE_DIR}/glslang" "${glslang_SOURCE_DIR}" CACHE STRING "" FORCE)
|
||
|
|
||
|
set(SHADERC_SPIRV_TOOLS_DIR "" CACHE STRING "unused")
|
||
|
find_package(SPIRV-Tools CONFIG REQUIRED)
|
||
|
add_library(SPIRV-Tools ALIAS SPIRV-Tools-static) # as linked by SPIRV-Tools-opt
|
||
|
find_package(SPIRV-Tools-opt CONFIG REQUIRED)
|