File tree Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,13 @@ list(APPEND DXC_CMAKE_ARGS "-DCLANG_CL:BOOL=OFF")
30
30
list (APPEND DXC_CMAKE_ARGS "-DCMAKE_SYSTEM_VERSION=10.0.17763.0" )
31
31
list (APPEND DXC_CMAKE_ARGS "-DDXC_BUILD_ARCH=x64" )
32
32
33
- set (DXC_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR} /dxc" CACHE PATH "" )
34
- set (DXC_BINARY_DIR_EP "${CMAKE_CURRENT_BINARY_DIR} /external/dxc" CACHE PATH "" )
35
- set (DXC_BINARY_DIR_GE "${DXC_BINARY_DIR_EP} /Release" CACHE PATH "" )
36
- set (DXC_BIN_DIR "${DXC_BINARY_DIR_GE} /Release/bin" CACHE PATH "" )
37
- set (DXC_EXECUTABLE "${DXC_BIN_DIR} /dxc.exe" CACHE FILEPATH "" )
33
+ set (DXC_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR} /dxc" CACHE INTERNAL "" )
34
+ set (DXC_BINARY_DIR_EP "${CMAKE_CURRENT_BINARY_DIR} /external/dxc" CACHE INTERNAL "" )
35
+ set (DXC_BINARY_DIR_GE "${DXC_BINARY_DIR_EP} /Release" CACHE INTERNAL "" )
36
+ set (DXC_BIN_DIR "${DXC_BINARY_DIR_GE} /Release/bin" CACHE INTERNAL "" )
37
+ set (DXC_LIB_DIR "${DXC_BINARY_DIR_GE} /Release/lib" CACHE INTERNAL "" )
38
+ set (DXC_EXECUTABLE "${DXC_BIN_DIR} /dxc.exe" CACHE INTERNAL "" )
39
+ set (DXC_DXCOMPILER_LIB "${DXC_LIB_DIR} /dxcompiler.lib" CACHE INTERNAL "" )
38
40
39
41
ExternalProject_Add (dxc
40
42
DOWNLOAD_COMMAND ""
Original file line number Diff line number Diff line change @@ -582,6 +582,18 @@ endif()
582
582
# DXC
583
583
if (_NBL_COMPILE_WITH_DXC_ )
584
584
add_dependencies (Nabla dxc )
585
+ target_include_directories (Nabla PRIVATE
586
+ "${DXC_BINARY_DIR_GE} /tools/clang/tools/dxcompiler"
587
+ "${DXC_SOURCE_DIR} /tools/clang/tools/dxcompiler"
588
+ "${DXC_SOURCE_DIR} /tools/clang/include"
589
+ "${DXC_BINARY_DIR_GE} /tools/clang/include"
590
+ "${DXC_SOURCE_DIR} /include/llvm/llvm_assert"
591
+ "${DXC_BINARY_DIR_GE} /include"
592
+ "${DXC_SOURCE_DIR} /include"
593
+ "${DXC_BINARY_DIR_GE} /include/dxc/Tracing"
594
+ "${DXC_BINARY_DIR_GE} /utils/version"
595
+ )
596
+ target_link_libraries (Nabla INTERFACE "${DXC_DXCOMPILER_LIB} " )
585
597
586
598
############################################################################
587
599
# list files you want to compile with DXC in _NBL_ENABLE_DXC_COMPILE_TESTS_
You can’t perform that action at this time.
0 commit comments