diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2022-08-21 19:42:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-21 19:42:42 +0200 |
commit | b99596e3120bdf4eb9ab8c3e868a0fff55cd79d0 (patch) | |
tree | 3a6440d9e59c8dea7f71cfd87f17cf1d7d93c23a /externals/find-modules/FindCatch2.cmake | |
parent | Merge pull request #8676 from abouvier/no-check-sub (diff) | |
parent | build(externals): rename Findopus to FindOpus (diff) | |
download | yuzu-b99596e3120bdf4eb9ab8c3e868a0fff55cd79d0.tar yuzu-b99596e3120bdf4eb9ab8c3e868a0fff55cd79d0.tar.gz yuzu-b99596e3120bdf4eb9ab8c3e868a0fff55cd79d0.tar.bz2 yuzu-b99596e3120bdf4eb9ab8c3e868a0fff55cd79d0.tar.lz yuzu-b99596e3120bdf4eb9ab8c3e868a0fff55cd79d0.tar.xz yuzu-b99596e3120bdf4eb9ab8c3e868a0fff55cd79d0.tar.zst yuzu-b99596e3120bdf4eb9ab8c3e868a0fff55cd79d0.zip |
Diffstat (limited to 'externals/find-modules/FindCatch2.cmake')
-rw-r--r-- | externals/find-modules/FindCatch2.cmake | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/externals/find-modules/FindCatch2.cmake b/externals/find-modules/FindCatch2.cmake deleted file mode 100644 index bded15951..000000000 --- a/externals/find-modules/FindCatch2.cmake +++ /dev/null @@ -1,51 +0,0 @@ -# SPDX-FileCopyrightText: 2020 yuzu Emulator Project -# SPDX-License-Identifier: GPL-2.0-or-later - -find_package(PkgConfig QUIET) -pkg_check_modules(PC_Catch2 QUIET Catch2) - -find_path(Catch2_INCLUDE_DIR - NAMES catch.hpp - PATHS ${PC_Catch2_INCLUDE_DIRS} ${CONAN_CATCH2_ROOT} - PATH_SUFFIXES catch2 -) - -if(Catch2_INCLUDE_DIR) - file(STRINGS "${Catch2_INCLUDE_DIR}/catch.hpp" _Catch2_version_lines - REGEX "#define[ \t]+CATCH_VERSION_(MAJOR|MINOR|PATCH)") - string(REGEX REPLACE ".*CATCH_VERSION_MAJOR +\([0-9]+\).*" "\\1" _Catch2_version_major "${_Catch2_version_lines}") - string(REGEX REPLACE ".*CATCH_VERSION_MINOR +\([0-9]+\).*" "\\1" _Catch2_version_minor "${_Catch2_version_lines}") - string(REGEX REPLACE ".*CATCH_VERSION_PATCH +\([0-9]+\).*" "\\1" _Catch2_version_patch "${_Catch2_version_lines}") - set(Catch2_VERSION "${_Catch2_version_major}.${_Catch2_version_minor}.${_Catch2_version_patch}") - unset(_Catch2_version_major) - unset(_Catch2_version_minor) - unset(_Catch2_version_patch) - unset(_Catch2_version_lines) -endif() - -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(Catch2 - FOUND_VAR Catch2_FOUND - REQUIRED_VARS - Catch2_INCLUDE_DIR - Catch2_VERSION - VERSION_VAR Catch2_VERSION -) - -if(Catch2_FOUND) - set(Catch2_INCLUDE_DIRS ${Catch2_INCLUDE_DIR}) - set(Catch2_DEFINITIONS ${PC_Catch2_CFLAGS_OTHER}) -endif() - -if(Catch2_FOUND AND NOT TARGET Catch2::Catch2) - add_library(Catch2::Catch2 UNKNOWN IMPORTED) - set_target_properties(Catch2::Catch2 PROPERTIES - IMPORTED_LOCATION "${Catch2_LIBRARY}" - INTERFACE_COMPILE_OPTIONS "${PC_Catch2_CFLAGS_OTHER}" - INTERFACE_INCLUDE_DIRECTORIES "${Catch2_INCLUDE_DIR}" - ) -endif() - -mark_as_advanced( - Catch2_INCLUDE_DIR -) |