mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 04:39:02 +08:00
14 lines
619 B
CMake
14 lines
619 B
CMake
|
cmake_minimum_required(VERSION 3.11)
|
||
|
|
||
|
find_package(glslang CONFIG REQUIRED)
|
||
|
|
||
|
set_property(TARGET glslang PROPERTY IMPORTED_GLOBAL TRUE)
|
||
|
set_property(TARGET OSDependent PROPERTY IMPORTED_GLOBAL TRUE)
|
||
|
set_property(TARGET OGLCompiler PROPERTY IMPORTED_GLOBAL TRUE)
|
||
|
set_property(TARGET HLSL PROPERTY IMPORTED_GLOBAL TRUE)
|
||
|
set_property(TARGET SPIRV PROPERTY IMPORTED_GLOBAL TRUE)
|
||
|
set_property(TARGET MachineIndependent PROPERTY IMPORTED_GLOBAL TRUE)
|
||
|
|
||
|
find_path(glslang_SOURCE_DIR glslang/Public/ShaderLang.h)
|
||
|
set(glslang_SOURCE_DIR "${glslang_SOURCE_DIR}/glslang" "${glslang_SOURCE_DIR}" CACHE STRING "" FORCE)
|