summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2024-01-24 17:29:09 +0800
committerGitHub <noreply@github.com>2024-01-24 17:29:09 +0800
commit4e7e820c3dda716334ccbe9854379e46d8d332bb (patch)
tree2b1456d26133d901c397bd64391494ed1ac44c41 /CMakeLists.txt
parentba4baf41155afcc4943dcc3887a7c7a324607939 (diff)
Generate lookup tables from cmake (#3461)
* Generate lookup tables from cmake * Correct add_custom_command generator dependencies * set options for lookup table source * include path * use slang_add_target for capability generated targets * vs project regenerate * ci wobble --------- Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index eef229ee6..f055b01ad 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -152,6 +152,7 @@ glob_append(
premake_generated_files
"source/slang/*.meta.slang.h"
"source/slang/*-generated-*.h"
+ "source/slang/slang-lookup-*.cpp"
)
if(premake_generated_files)
file(REMOVE ${premake_generated_files})
@@ -277,7 +278,12 @@ add_subdirectory(source/slang)
slang_add_target(
tools/slangd
EXECUTABLE
- LINK_WITH_PRIVATE core slang slang-reflect-headers slang-capability-defs Threads::Threads
+ LINK_WITH_PRIVATE
+ core
+ slang
+ slang-reflect-headers
+ slang-capability-defs
+ Threads::Threads
INSTALL
)
slang_add_target(