reorganize cmakelists
This commit is contained in:
parent
f2399787c9
commit
7c9b945386
3 changed files with 15 additions and 14 deletions
|
|
@ -21,18 +21,7 @@ target_include_directories(mach_detours
|
||||||
PRIVATE src
|
PRIVATE src
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
add_executable(mach_detours_sample
|
|
||||||
sample/main.c
|
|
||||||
)
|
|
||||||
target_link_libraries(mach_detours_sample
|
|
||||||
PRIVATE mach_detours
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
add_subdirectory(lib/catch2)
|
add_subdirectory(lib/catch2)
|
||||||
add_executable(mach_detours_tests
|
|
||||||
tests/test.cpp)
|
add_subdirectory(sample)
|
||||||
target_link_libraries(mach_detours_tests
|
add_subdirectory(tests)
|
||||||
PRIVATE Catch2::Catch2WithMain mach_detours
|
|
||||||
)
|
|
||||||
|
|
|
||||||
6
sample/CMakeLists.txt
Normal file
6
sample/CMakeLists.txt
Normal 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
6
tests/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
add_executable(mach_detours_tests
|
||||||
|
test.cpp)
|
||||||
|
|
||||||
|
target_link_libraries(mach_detours_tests
|
||||||
|
PRIVATE Catch2::Catch2WithMain mach_detours
|
||||||
|
)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue