diff options
author | Alexandre Bouvier <contact@amb.tf> | 2023-09-16 18:59:53 +0200 |
---|---|---|
committer | Alexandre Bouvier <contact@amb.tf> | 2023-09-18 18:35:20 +0200 |
commit | f93f31f4ae6c8ab22182ae0fdf4eb613658e98f3 (patch) | |
tree | 1b95e0d8de1c3c2bd6c9ac9ce07ce914b6bec15e /CMakeModules/FindRenderDoc.cmake | |
parent | Merge pull request #11258 from Squall-Leonhart/Z16_Assert_Fix (diff) | |
download | yuzu-f93f31f4ae6c8ab22182ae0fdf4eb613658e98f3.tar yuzu-f93f31f4ae6c8ab22182ae0fdf4eb613658e98f3.tar.gz yuzu-f93f31f4ae6c8ab22182ae0fdf4eb613658e98f3.tar.bz2 yuzu-f93f31f4ae6c8ab22182ae0fdf4eb613658e98f3.tar.lz yuzu-f93f31f4ae6c8ab22182ae0fdf4eb613658e98f3.tar.xz yuzu-f93f31f4ae6c8ab22182ae0fdf4eb613658e98f3.tar.zst yuzu-f93f31f4ae6c8ab22182ae0fdf4eb613658e98f3.zip |
Diffstat (limited to 'CMakeModules/FindRenderDoc.cmake')
-rw-r--r-- | CMakeModules/FindRenderDoc.cmake | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/CMakeModules/FindRenderDoc.cmake b/CMakeModules/FindRenderDoc.cmake new file mode 100644 index 000000000..2678b936b --- /dev/null +++ b/CMakeModules/FindRenderDoc.cmake @@ -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) |