blob: 2d739d6b1bb5dc7e6cbe1dc3b58adb0d772e1441 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -142,5 +142,7 @@ add_subdirectory(externals)
# Dynarmic project files
add_subdirectory(src/dynarmic)
if (DYNARMIC_TESTS)
+ find_package(Catch2 REQUIRED)
+ add_library(catch ALIAS Catch2::Catch2)
add_subdirectory(tests)
endif()
--- a/externals/CMakeLists.txt
+++ b/externals/CMakeLists.txt
@@ -2,11 +2,6 @@
# simply add the directory to that file as a subdirectory
# to have CMake automatically recognize them.
-# catch
-
-add_library(catch INTERFACE)
-target_include_directories(catch INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/catch/include>)
-
# fmt
if (NOT DYNARMIC_NO_BUNDLED_FMT)
|