This commit is contained in:
Lysann Tranvouez 2025-10-02 20:51:25 +02:00
parent 5e76138b53
commit 327dfb0cb7
5 changed files with 34 additions and 34 deletions

View file

@ -6,14 +6,14 @@ add_executable(mach_detours_tests
# The target function must be in a shared library because otherwise it might be in the same code page as the test.cpp functions.
# Between attach and commit the target function's code page is not executable, which can mean our test driver code would not
# be executable.
add_library(mach_detours_test_func SHARED
test_func.c
test_func.h
add_library(mach_detours_tests_lib SHARED
lib_function.c
lib_function.h
)
target_link_libraries(mach_detours_tests
PRIVATE
mach_detours
Catch2::Catch2WithMain
mach_detours_test_func
mach_detours_tests_lib
)