diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2024-11-14 12:34:18 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-13 20:34:18 -0800 |
| commit | 7b570feed42976a6e787d79a70aaf8e667745e58 (patch) | |
| tree | 7f96139f9570de1e2c5747faf6ad489e029de535 /external | |
| parent | fdf106b543c756eebca7e90fe839fdf1902cc381 (diff) | |
Correct include dir for libslang (#5539)
This stops adding the repo root to the include path for anything linking
with slang. This enabled a bunch of convenient includes, but might lead
to confusing behavior for anyone including slang. Not to mention
differences including it from an install vs source.
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'external')
| -rw-r--r-- | external/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index 091070e5d..43105a5f0 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -91,8 +91,12 @@ endif() add_library(imgui INTERFACE) target_include_directories(imgui INTERFACE "${CMAKE_CURRENT_LIST_DIR}/imgui") +# stb +add_library(stb INTERFACE) +target_include_directories(stb INTERFACE "${CMAKE_CURRENT_LIST_DIR}/stb") + +# slang-rhi if(SLANG_ENABLE_SLANG_RHI) - # slang-rhi set(SLANG_RHI_BINARY_DIR ${CMAKE_BINARY_DIR}/$<CONFIG>/bin) set(SLANG_RHI_SLANG_INCLUDE_DIR ${slang_SOURCE_DIR}/include) set(SLANG_RHI_SLANG_BINARY_DIR ${CMAKE_BINARY_DIR}) |
