@@ -98,6 +98,7 @@ if(SLANG_ENABLE_GFX)
98
98
LINK_WITH_PRIVATE
99
99
core
100
100
imgui
101
+ stb
101
102
$<$<BOOL :${SLANG_ENABLE_XLIB} >:X11::X11>
102
103
"$<$<PLATFORM_ID:Darwin>:-framework Cocoa>"
103
104
"$<$<PLATFORM_ID:Darwin>:-framework QuartzCore>"
@@ -106,7 +107,7 @@ if(SLANG_ENABLE_GFX)
106
107
EXTRA_COMPILE_DEFINITIONS_PRIVATE
107
108
$<$<BOOL :${SLANG_ENABLE_XLIB} >:SLANG_ENABLE_XLIB=1>
108
109
INCLUDE_FROM_PRIVATE gfx
109
- INCLUDE_DIRECTORIES_PUBLIC platform
110
+ INCLUDE_DIRECTORIES_PUBLIC . platform
110
111
EXPORT_MACRO_PREFIX SLANG_PLATFORM
111
112
)
112
113
@@ -122,6 +123,7 @@ if(SLANG_ENABLE_GFX)
122
123
slang
123
124
Vulkan-Headers
124
125
metal-cpp
126
+ stb
125
127
$<$<BOOL :${SLANG_ENABLE_XLIB} >:X11::X11>
126
128
$<$<BOOL :${SLANG_ENABLE_CUDA} >:CUDA::cuda_driver>
127
129
LINK_WITH_FRAMEWORK Foundation Cocoa QuartzCore Metal
@@ -182,6 +184,7 @@ if(SLANG_ENABLE_TESTS)
182
184
EXECUTABLE
183
185
EXCLUDE_FROM_ALL
184
186
LINK_WITH_PRIVATE core compiler-core slang
187
+ INCLUDE_FROM_PRIVATE unit-test
185
188
FOLDER test
186
189
)
187
190
slang_add_target(
@@ -196,10 +199,12 @@ if(SLANG_ENABLE_TESTS)
196
199
slang-test
197
200
EXECUTABLE
198
201
USE_FEWER_WARNINGS
202
+ INCLUDE_DIRECTORIES_PUBLIC .
199
203
LINK_WITH_PRIVATE
200
204
core
201
205
compiler-core
202
206
slang
207
+ stb
203
208
${CMAKE_DL_LIBS}
204
209
Threads::Threads
205
210
REQUIRES
@@ -241,6 +246,7 @@ if(SLANG_ENABLE_TESTS)
241
246
unit-test
242
247
OBJECT
243
248
EXCLUDE_FROM_ALL
249
+ INCLUDE_DIRECTORIES_PUBLIC .
244
250
INCLUDE_FROM_PRIVATE slang core
245
251
INCLUDE_DIRECTORIES_PRIVATE ${slang_SOURCE_DIR} /include
246
252
FOLDER test
@@ -254,7 +260,7 @@ if(SLANG_ENABLE_TESTS)
254
260
EXCLUDE_FROM_ALL
255
261
EXTRA_COMPILE_DEFINITIONS_PRIVATE SLANG_SHARED_LIBRARY_TOOL
256
262
USE_FEWER_WARNINGS
257
- LINK_WITH_PRIVATE core slang unit-test gfx gfx-util platform
263
+ LINK_WITH_PRIVATE core slang unit-test gfx gfx-util platform stb
258
264
OUTPUT_NAME gfx-unit-test -tool
259
265
REQUIRED_BY slang-test
260
266
FOLDER test /tools
@@ -272,6 +278,7 @@ if(SLANG_ENABLE_TESTS)
272
278
slang
273
279
slang-rhi
274
280
platform
281
+ stb
275
282
$<$<BOOL :${SLANG_ENABLE_CUDA} >:CUDA::cuda_driver>
276
283
EXTRA_COMPILE_DEFINITIONS_PRIVATE
277
284
$<$<BOOL :${SLANG_ENABLE_CUDA} >:RENDER_TEST_CUDA>
0 commit comments