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

View file

@ -1,3 +1,5 @@
# Copyright (c) Lysann Tranvouez. All rights reserved.
cmake_minimum_required(VERSION 3.29)
project(mach_detours C CXX)
@ -26,3 +28,11 @@ add_executable(mach_detours_sample
target_link_libraries(mach_detours_sample
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
)