From 21913cc030687ee65e3e8f6ff6183a992ac2a57d Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Tue, 7 Mar 2023 17:50:16 +0800 Subject: [PATCH] added GLSLCompilerStatic --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 48b2e81..cccbecc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,3 +45,7 @@ set(VULKAN_SPIRV_LIBS GenericCodeGen add_library(GLSLCompiler SHARED glsl2spv.cpp VKShaderParse.h) target_link_libraries(GLSLCompiler PRIVATE ${VULKAN_SPIRV_LIBS}) + +add_library(GLSLCompilerStatic STATIC glsl2spv.cpp VKShaderParse.h) + +target_link_libraries(GLSLCompilerStatic PRIVATE ${VULKAN_SPIRV_LIBS})