diff --git a/Source/Core/VideoBackends/Vulkan/CMakeLists.txt b/Source/Core/VideoBackends/Vulkan/CMakeLists.txt index 4e24d82add..889da03f6f 100644 --- a/Source/Core/VideoBackends/Vulkan/CMakeLists.txt +++ b/Source/Core/VideoBackends/Vulkan/CMakeLists.txt @@ -1,4 +1,4 @@ -set(SRCS +add_library(videovulkan BoundingBox.cpp CommandBufferManager.cpp FramebufferManager.cpp @@ -27,23 +27,26 @@ set(SRCS main.cpp ) -set(LIBS - videocommon - common -) - -# Only include the Vulkan headers when building the Vulkan backend -include_directories(${CMAKE_SOURCE_DIR}/Externals/Vulkan/Include) - -# Silence warnings on glslang by flagging it as a system include -include_directories(SYSTEM ${CMAKE_SOURCE_DIR}/Externals/glslang/glslang/Public) -include_directories(SYSTEM ${CMAKE_SOURCE_DIR}/Externals/glslang/SPIRV) - -# Link against glslang, the other necessary libraries are referenced by the executable. -add_dolphin_library(videovulkan "${SRCS}" "${LIBS}") target_link_libraries(videovulkan +PUBLIC + common + videocommon + PRIVATE + # Link against glslang, the other necessary libraries are referenced by the executable. glslang xxhash ) +# Only include the Vulkan headers when building the Vulkan backend +target_include_directories(videovulkan +PRIVATE + ${CMAKE_SOURCE_DIR}/Externals/Vulkan/Include +) + +# Silence warnings on glslang by flagging it as a system include +target_include_directories(videovulkan +SYSTEM PRIVATE + ${CMAKE_SOURCE_DIR}/Externals/glslang/glslang/Public + ${CMAKE_SOURCE_DIR}/Externals/glslang/SPIRV +)