CMake: Include Vulkan headers

This commit is contained in:
Connor McLaughlin 2022-07-25 01:06:24 +10:00
parent 5510f66a12
commit 25c52f97d4
3 changed files with 5 additions and 1 deletions

View File

@ -10,6 +10,7 @@ add_subdirectory(rapidjson)
add_subdirectory(glslang) add_subdirectory(glslang)
add_subdirectory(imgui) add_subdirectory(imgui)
add_subdirectory(simpleini) add_subdirectory(simpleini)
add_subdirectory(vulkan)
set(LIBSAMPLERATE_ENABLE_SINC_BEST_CONVERTER OFF) set(LIBSAMPLERATE_ENABLE_SINC_BEST_CONVERTER OFF)
add_subdirectory(libsamplerate) add_subdirectory(libsamplerate)

View File

@ -0,0 +1,3 @@
add_library(vulkan-headers INTERFACE)
target_include_directories(vulkan-headers INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/include/")

View File

@ -88,7 +88,7 @@ add_library(common
target_include_directories(common PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/..") target_include_directories(common PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/..")
target_include_directories(common PUBLIC "${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}") target_link_libraries(common PRIVATE glad stb libchdr glslang zlib minizip samplerate "${CMAKE_DL_LIBS}")
if(WIN32) if(WIN32)