summaryrefslogtreecommitdiffstats
path: root/Graphics/GLSLTools
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-01-09 04:19:13 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-01-09 04:19:13 +0000
commit66cda8480b2ac9956e8a3f55bcdeb29438a11760 (patch)
tree83ffe64ba82db7fed9629bcf06f6765b7b02032b /Graphics/GLSLTools
parentMinor fix (diff)
downloadDiligentCore-66cda8480b2ac9956e8a3f55bcdeb29438a11760.tar.gz
DiligentCore-66cda8480b2ac9956e8a3f55bcdeb29438a11760.zip
Added option to not build glslang
Diffstat (limited to 'Graphics/GLSLTools')
-rw-r--r--Graphics/GLSLTools/CMakeLists.txt30
1 files changed, 22 insertions, 8 deletions
diff --git a/Graphics/GLSLTools/CMakeLists.txt b/Graphics/GLSLTools/CMakeLists.txt
index 8a98e6d9..9b96675b 100644
--- a/Graphics/GLSLTools/CMakeLists.txt
+++ b/Graphics/GLSLTools/CMakeLists.txt
@@ -13,12 +13,19 @@ set(SOURCE
if(VULKAN_SUPPORTED)
list(APPEND SOURCE
src/SPIRVShaderResources.cpp
- src/SPIRVUtils.cpp
)
list(APPEND INCLUDE
include/SPIRVShaderResources.h
- include/SPIRVUtils.h
)
+
+ if (NOT ${NO_GLSLANG})
+ list(APPEND SOURCE
+ src/SPIRVUtils.cpp
+ )
+ list(APPEND INCLUDE
+ include/SPIRVUtils.h
+ )
+ endif()
endif()
add_library(GLSLTools STATIC ${SOURCE} ${INCLUDE})
@@ -44,14 +51,21 @@ PUBLIC
if(VULKAN_SUPPORTED)
target_link_libraries(GLSLTools
PRIVATE
- glslang
- SPIRV
SPIRVCross
)
- target_include_directories(GLSLTools
- PRIVATE
- ../../External/glslang
- )
+
+ if (NOT ${NO_GLSLANG})
+ target_link_libraries(GLSLTools
+ PRIVATE
+ glslang
+ SPIRV
+ )
+
+ target_include_directories(GLSLTools
+ PRIVATE
+ ../../External/glslang
+ )
+ endif()
endif()
set_common_target_properties(GLSLTools)