summaryrefslogtreecommitdiff
path: root/source/slang-glslang
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang-glslang')
-rw-r--r--source/slang-glslang/CMakeLists.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/source/slang-glslang/CMakeLists.txt b/source/slang-glslang/CMakeLists.txt
new file mode 100644
index 000000000..37bb93ca0
--- /dev/null
+++ b/source/slang-glslang/CMakeLists.txt
@@ -0,0 +1,16 @@
+#
+# Our wrapper for glslang
+#
+if(SLANG_ENABLE_SLANG_GLSLANG)
+ slang_add_target(
+ .
+ MODULE
+ USE_FEWER_WARNINGS
+ LINK_WITH_PRIVATE glslang SPIRV SPIRV-Tools-opt
+ INCLUDE_DIRECTORIES_PRIVATE ${slang_SOURCE_DIR}/include
+ INSTALL
+ )
+ # Our only interface is through what we define in source/slang-glslang, in the
+ # interests of hygiene, hide anything else we link in.
+ add_supported_cxx_linker_flags(slang-glslang PRIVATE "-Wl,--exclude-libs,ALL")
+endif()