mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-15 08:50:06 +00:00
Merge pull request #11536 from abouvier/renderdoc
cmake: prefer system renderdoc header
This commit is contained in:
commit
da8cbbf958
@ -333,6 +333,7 @@ find_package(LLVM 17 MODULE COMPONENTS Demangle)
|
|||||||
find_package(lz4 REQUIRED)
|
find_package(lz4 REQUIRED)
|
||||||
find_package(nlohmann_json 3.8 REQUIRED)
|
find_package(nlohmann_json 3.8 REQUIRED)
|
||||||
find_package(Opus 1.3 MODULE)
|
find_package(Opus 1.3 MODULE)
|
||||||
|
find_package(RenderDoc MODULE)
|
||||||
find_package(VulkanMemoryAllocator CONFIG)
|
find_package(VulkanMemoryAllocator CONFIG)
|
||||||
find_package(ZLIB 1.2 REQUIRED)
|
find_package(ZLIB 1.2 REQUIRED)
|
||||||
find_package(zstd 1.5 REQUIRED)
|
find_package(zstd 1.5 REQUIRED)
|
||||||
|
19
CMakeModules/FindRenderDoc.cmake
Normal file
19
CMakeModules/FindRenderDoc.cmake
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023 Alexandre Bouvier <contact@amb.tf>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
find_path(RenderDoc_INCLUDE_DIR renderdoc_app.h)
|
||||||
|
|
||||||
|
include(FindPackageHandleStandardArgs)
|
||||||
|
find_package_handle_standard_args(RenderDoc
|
||||||
|
REQUIRED_VARS RenderDoc_INCLUDE_DIR
|
||||||
|
)
|
||||||
|
|
||||||
|
if (RenderDoc_FOUND AND NOT TARGET RenderDoc::API)
|
||||||
|
add_library(RenderDoc::API INTERFACE IMPORTED)
|
||||||
|
set_target_properties(RenderDoc::API PROPERTIES
|
||||||
|
INTERFACE_INCLUDE_DIRECTORIES "${RenderDoc_INCLUDE_DIR}"
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
mark_as_advanced(RenderDoc_INCLUDE_DIR)
|
7
externals/CMakeLists.txt
vendored
7
externals/CMakeLists.txt
vendored
@ -174,8 +174,11 @@ target_include_directories(stb PUBLIC ./stb)
|
|||||||
add_library(bc_decoder bc_decoder/bc_decoder.cpp)
|
add_library(bc_decoder bc_decoder/bc_decoder.cpp)
|
||||||
target_include_directories(bc_decoder PUBLIC ./bc_decoder)
|
target_include_directories(bc_decoder PUBLIC ./bc_decoder)
|
||||||
|
|
||||||
add_library(renderdoc INTERFACE)
|
if (NOT TARGET RenderDoc::API)
|
||||||
target_include_directories(renderdoc SYSTEM INTERFACE ./renderdoc)
|
add_library(renderdoc INTERFACE)
|
||||||
|
target_include_directories(renderdoc SYSTEM INTERFACE ./renderdoc)
|
||||||
|
add_library(RenderDoc::API ALIAS renderdoc)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (ANDROID)
|
if (ANDROID)
|
||||||
if (ARCHITECTURE_arm64)
|
if (ARCHITECTURE_arm64)
|
||||||
|
@ -890,7 +890,7 @@ endif()
|
|||||||
create_target_directory_groups(core)
|
create_target_directory_groups(core)
|
||||||
|
|
||||||
target_link_libraries(core PUBLIC common PRIVATE audio_core network video_core nx_tzdb)
|
target_link_libraries(core PUBLIC common PRIVATE audio_core network video_core nx_tzdb)
|
||||||
target_link_libraries(core PUBLIC Boost::headers PRIVATE fmt::fmt nlohmann_json::nlohmann_json mbedtls renderdoc)
|
target_link_libraries(core PUBLIC Boost::headers PRIVATE fmt::fmt nlohmann_json::nlohmann_json mbedtls RenderDoc::API)
|
||||||
if (MINGW)
|
if (MINGW)
|
||||||
target_link_libraries(core PRIVATE ${MSWSOCK_LIBRARY})
|
target_link_libraries(core PRIVATE ${MSWSOCK_LIBRARY})
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user