Vulkan/CMakeLists: Migrate off add_dolphin_library

Finishes the migration work started in 3a4c3bbe01
This commit is contained in:
Lioncash 2018-04-02 08:26:15 -04:00
parent 8b43a31855
commit b184923540
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7
1 changed files with 18 additions and 15 deletions

View File

@ -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
)