mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-04 14:39:05 +08:00
16f5ba45a9
* Bump glslang port to 11.11.0 * Fix sha to match the one shown on the microsoft build server * Fix portfile issues (at least for Windows) * Potentially fix shaderc port * update shaderc version * shaderc appears to require Threads? * change shaderc port version? * fix local port-version * Added custom usage as per PR suggestion! * Updated glslang port tree version hash
23 lines
1007 B
CMake
23 lines
1007 B
CMake
cmake_minimum_required(VERSION 3.11)
|
|
|
|
find_package(glslang CONFIG REQUIRED)
|
|
|
|
set_property(TARGET glslang::glslang PROPERTY IMPORTED_GLOBAL TRUE)
|
|
set_property(TARGET glslang::OSDependent PROPERTY IMPORTED_GLOBAL TRUE)
|
|
set_property(TARGET glslang::OGLCompiler PROPERTY IMPORTED_GLOBAL TRUE)
|
|
set_property(TARGET glslang::HLSL PROPERTY IMPORTED_GLOBAL TRUE)
|
|
set_property(TARGET glslang::SPIRV PROPERTY IMPORTED_GLOBAL TRUE)
|
|
set_property(TARGET glslang::MachineIndependent PROPERTY IMPORTED_GLOBAL TRUE)
|
|
|
|
add_library(glslang ALIAS glslang::glslang)
|
|
add_library(OSDependent ALIAS glslang::OSDependent)
|
|
add_library(OGLCompiler ALIAS glslang::OGLCompiler)
|
|
add_library(HLSL ALIAS glslang::HLSL)
|
|
add_library(SPIRV ALIAS glslang::SPIRV)
|
|
add_library(MachineIndependent ALIAS glslang::MachineIndependent)
|
|
|
|
find_package(Threads REQUIRED)
|
|
|
|
find_path(glslang_SOURCE_DIR glslang/Public/ShaderLang.h)
|
|
set(glslang_SOURCE_DIR "${glslang_SOURCE_DIR}/glslang" "${glslang_SOURCE_DIR}" CACHE STRING "" FORCE)
|