CMake: Include Vulkan headers
This commit is contained in:
parent
5510f66a12
commit
25c52f97d4
|
@ -10,6 +10,7 @@ add_subdirectory(rapidjson)
|
|||
add_subdirectory(glslang)
|
||||
add_subdirectory(imgui)
|
||||
add_subdirectory(simpleini)
|
||||
add_subdirectory(vulkan)
|
||||
|
||||
set(LIBSAMPLERATE_ENABLE_SINC_BEST_CONVERTER OFF)
|
||||
add_subdirectory(libsamplerate)
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
add_library(vulkan-headers INTERFACE)
|
||||
target_include_directories(vulkan-headers INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/include/")
|
||||
|
|
@ -88,7 +88,7 @@ add_library(common
|
|||
|
||||
target_include_directories(common PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/..")
|
||||
target_include_directories(common PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/..")
|
||||
target_link_libraries(common PUBLIC fmt Threads::Threads)
|
||||
target_link_libraries(common PUBLIC fmt Threads::Threads vulkan-headers)
|
||||
target_link_libraries(common PRIVATE glad stb libchdr glslang zlib minizip samplerate "${CMAKE_DL_LIBS}")
|
||||
|
||||
if(WIN32)
|
||||
|
|
Loading…
Reference in New Issue