Play-/Source/gs/GSH_Vulkan/CMakeLists.txt
Jean-Philip Desjardins 30568a057d
Some checks failed
Build macOS / build_macos (push) Has been cancelled
Build Android / build_android (apk) (push) Has been cancelled
Build Android / build_android (libretro) (push) Has been cancelled
Build Linux ARM32 / build_linux_arm32 (push) Has been cancelled
Build Linux ARM64 / build_linux_arm64 (push) Has been cancelled
Build Windows Psf / build_windows_psf (off, x86_64, Visual Studio 16 2019, installer64.nsi, x64) (push) Has been cancelled
Build Windows Psf / build_windows_psf (on, x86_64, Visual Studio 16 2019, installer64.nsi, x64) (push) Has been cancelled
Build Windows / build_windows (x86_32, Visual Studio 16 2019, installer32.nsi, win32_msvc2019, Win32) (push) Has been cancelled
Build Windows / build_windows (x86_64, Visual Studio 16 2019, installer64.nsi, win64_msvc2019_64, x64) (push) Has been cancelled
Check Format / run_clangformat (push) Has been cancelled
Build iOS / build_ios (push) Has been cancelled
Build JavaScript / build_js (push) Has been cancelled
Build Linux / build_linux (push) Has been cancelled
Use app_config module.
2025-03-11 16:18:58 -04:00

69 lines
1.7 KiB
CMake

cmake_minimum_required(VERSION 3.5)
set(CMAKE_MODULE_PATH
${CMAKE_CURRENT_SOURCE_DIR}/../../../deps/Dependencies/cmake-modules
${CMAKE_MODULE_PATH}
)
include(Header)
project(GSH_Vulkan)
if(NOT TARGET Framework_Vulkan)
add_subdirectory(
${CMAKE_CURRENT_SOURCE_DIR}/../../../deps/Framework/build_cmake/FrameworkVulkan
${CMAKE_CURRENT_BINARY_DIR}/FrameworkVulkan
)
endif()
list(APPEND GSH_VULKAN_PROJECT_LIBS Framework_Vulkan)
if(NOT TARGET Nuanceur)
add_subdirectory(
${CMAKE_CURRENT_SOURCE_DIR}/../../../deps/Nuanceur/build_cmake
${CMAKE_CURRENT_BINARY_DIR}/Nuanceur
)
endif()
list(APPEND GSH_VULKAN_PROJECT_LIBS Nuanceur)
if(NOT TARGET app_shared)
add_subdirectory(
${CMAKE_CURRENT_SOURCE_DIR}/../../app_shared
${CMAKE_CURRENT_BINARY_DIR}/app_shared
)
endif()
list(APPEND GSH_VULKAN_PROJECT_LIBS app_shared)
add_library(gsh_vulkan STATIC
GSH_Vulkan.cpp
GSH_Vulkan.h
GSH_VulkanContext.h
GSH_VulkanClutLoad.cpp
GSH_VulkanClutLoad.h
GSH_VulkanDeviceInfo.cpp
GSH_VulkanDeviceInfo.h
GSH_VulkanDraw.cpp
GSH_VulkanDraw.h
GSH_VulkanDrawDesktop.cpp
GSH_VulkanDrawDesktop.h
GSH_VulkanDrawMobile.cpp
GSH_VulkanDrawMobile.h
GSH_VulkanDrawUtils.cpp
GSH_VulkanDrawUtils.h
GSH_VulkanFrameCommandBuffer.cpp
GSH_VulkanFrameCommandBuffer.h
GSH_VulkanMemoryUtils.cpp
GSH_VulkanMemoryUtils.h
GSH_VulkanOffscreen.cpp
GSH_VulkanOffscreen.h
GSH_VulkanPlatformDefs.h
GSH_VulkanPipelineCache.h
GSH_VulkanPresent.cpp
GSH_VulkanPresent.h
GSH_VulkanTransferHost.cpp
GSH_VulkanTransferHost.h
GSH_VulkanTransferLocal.cpp
GSH_VulkanTransferLocal.h
)
target_link_libraries(gsh_vulkan ${GSH_VULKAN_PROJECT_LIBS})
target_include_directories(gsh_vulkan PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/Source/gs/GSH_Vulkan/)