CMake: Add spirv-cross include path to util
This commit is contained in:
parent
ccc3b114d4
commit
08fe20ad76
|
@ -133,7 +133,7 @@ if(ENABLE_OPENGL)
|
|||
)
|
||||
endif()
|
||||
if(ANDROID)
|
||||
target_include_directories(util PRIVATE "${CMAKE_SOURCE_DIR}/android/app/src/cpp")
|
||||
target_include_directories(util PRIVATE "${CMAKE_SOURCE_DIR}/android")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
@ -170,9 +170,10 @@ if(ENABLE_VULKAN)
|
|||
endif()
|
||||
|
||||
if(ENABLE_VULKAN OR APPLE)
|
||||
# shaderc is loaded dynamically to reduce module loads on startup.
|
||||
# shaderc/spirv-cross is loaded dynamically to reduce module loads on startup.
|
||||
get_target_property(SHADERC_INCLUDE_DIR Shaderc::shaderc_shared INTERFACE_INCLUDE_DIRECTORIES)
|
||||
target_include_directories(util PUBLIC ${SHADERC_INCLUDE_DIR})
|
||||
get_target_property(SPIRV_CROSS_INCLUDE_DIR spirv-cross-c-shared INTERFACE_INCLUDE_DIRECTORIES)
|
||||
target_include_directories(util PUBLIC ${SHADERC_INCLUDE_DIR} ${SPIRV_CROSS_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
if(NOT ANDROID)
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#include "fmt/format.h"
|
||||
#include "imgui.h"
|
||||
#include "shaderc/shaderc.h"
|
||||
#include "spirv_cross/spirv_cross_c.h"
|
||||
#include "spirv_cross_c.h"
|
||||
#include "xxhash.h"
|
||||
|
||||
LOG_CHANNEL(GPUDevice);
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<!-- Dependency linking and DLL copying -->
|
||||
<ItemDefinitionGroup>
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories);$(DepsIncludeDir)SDL2</AdditionalIncludeDirectories>
|
||||
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories);$(DepsIncludeDir)SDL2;$(DepsIncludeDir)spirv_cross</AdditionalIncludeDirectories>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>%(AdditionalDependencies);cpuinfo.lib;freetype.lib;jpeg.lib;libpng16.lib;libwebp.lib;lunasvg.lib;SDL2.lib;soundtouch.lib;zlib.lib;zstd.lib</AdditionalDependencies>
|
||||
|
|
Loading…
Reference in New Issue