add catch2

This commit is contained in:
Lysann Tranvouez 2025-10-01 23:04:46 +02:00
parent 848e8cc183
commit f2399787c9
4 changed files with 15 additions and 0 deletions

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "lib/catch2"]
path = lib/catch2
url = https://github.com/catchorg/Catch2.git

View file

@ -1,3 +1,5 @@
# Copyright (c) Lysann Tranvouez. All rights reserved.
cmake_minimum_required(VERSION 3.29) cmake_minimum_required(VERSION 3.29)
project(mach_detours C CXX) project(mach_detours C CXX)
@ -26,3 +28,11 @@ add_executable(mach_detours_sample
target_link_libraries(mach_detours_sample target_link_libraries(mach_detours_sample
PRIVATE mach_detours PRIVATE mach_detours
) )
add_subdirectory(lib/catch2)
add_executable(mach_detours_tests
tests/test.cpp)
target_link_libraries(mach_detours_tests
PRIVATE Catch2::Catch2WithMain mach_detours
)

1
lib/catch2 Submodule

@ -0,0 +1 @@
Subproject commit b3fb4b9feafcd8d91c5cb510a4775143fdbef02f

1
tests/test.cpp Normal file
View file

@ -0,0 +1 @@
// Copyright (c) Lysann Tranvouez. All rights reserved.