summaryrefslogtreecommitdiffstats
path: root/source/compiler-core/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'source/compiler-core/CMakeLists.txt')
-rw-r--r--source/compiler-core/CMakeLists.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/source/compiler-core/CMakeLists.txt b/source/compiler-core/CMakeLists.txt
new file mode 100644
index 000000000..4d1bff17b
--- /dev/null
+++ b/source/compiler-core/CMakeLists.txt
@@ -0,0 +1,16 @@
+slang_add_target(
+ .
+ STATIC
+ EXCLUDE_FROM_ALL
+ USE_EXTRA_WARNINGS
+ LINK_WITH_PRIVATE core
+ INCLUDE_FROM_PUBLIC SPIRV-Headers
+)
+if(NOT MSVC)
+ # This is necessary to compile the DXC headers
+ set_source_files_properties(
+ slang-dxc-compiler.cpp
+ PROPERTIES COMPILE_OPTIONS "-fms-extensions"
+ DIRECTORY ${slang_SOURCE_DIR}
+ )
+endif()