Vulkan/CMakeLists: Migrate off add_dolphin_library
Finishes the migration work started in 3a4c3bbe01
This commit is contained in:
parent
8b43a31855
commit
b184923540
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue