reorganize cmakelists

This commit is contained in:
Lysann Tranvouez 2025-10-01 23:07:06 +02:00
parent f2399787c9
commit 7c9b945386
3 changed files with 15 additions and 14 deletions

View file

@ -21,18 +21,7 @@ target_include_directories(mach_detours
PRIVATE src
)
add_executable(mach_detours_sample
sample/main.c
)
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
)
add_subdirectory(sample)
add_subdirectory(tests)

6
sample/CMakeLists.txt Normal file
View file

@ -0,0 +1,6 @@
add_executable(mach_detours_sample
main.c
)
target_link_libraries(mach_detours_sample
PRIVATE mach_detours
)

6
tests/CMakeLists.txt Normal file
View file

@ -0,0 +1,6 @@
add_executable(mach_detours_tests
test.cpp)
target_link_libraries(mach_detours_tests
PRIVATE Catch2::Catch2WithMain mach_detours
)