From 61aa670237e2d51f7144322bf56b8ce3633c2db9 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Thu, 24 Oct 2024 11:37:50 +0800 Subject: declutter top level CMakeLists.txt (#5391) * Split examples cmake desc * declutter top level CMakeLists.txt * fail if building tests without gfx * Move llvm fetching to another cmake file * Further split CMakeLists.txt * Neaten llvm fetching * Remove last premake remnant * correct cross builds * Neaten * Neaten project organization in vs --- source/compiler-core/CMakeLists.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 source/compiler-core/CMakeLists.txt (limited to 'source/compiler-core') 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() -- cgit v1.2.3