2025-10-01 23:04:46 +02:00
|
|
|
# Copyright (c) Lysann Tranvouez. All rights reserved.
|
|
|
|
|
|
2025-10-01 00:21:04 +02:00
|
|
|
cmake_minimum_required(VERSION 3.29)
|
2025-09-29 23:36:09 +02:00
|
|
|
project(mach_detours C CXX)
|
2025-09-27 23:12:16 +02:00
|
|
|
|
|
|
|
|
set(CMAKE_C_STANDARD 23)
|
2025-09-29 23:36:09 +02:00
|
|
|
set(CMAKE_CXX_STANDARD 23)
|
2025-09-27 23:12:16 +02:00
|
|
|
|
|
|
|
|
add_library(mach_detours SHARED
|
2025-09-28 00:42:23 +02:00
|
|
|
include/mach_detours.h
|
|
|
|
|
|
|
|
|
|
src/detours_internal.h
|
2025-09-29 23:36:09 +02:00
|
|
|
src/detours_disasm.h
|
|
|
|
|
src/mach_detours.c
|
|
|
|
|
|
2025-09-28 00:42:23 +02:00
|
|
|
src/arm64/detours_arm64.h
|
2025-10-01 22:08:01 +02:00
|
|
|
src/arm64/detours_arm64_disasm.c
|
2025-09-27 23:12:16 +02:00
|
|
|
)
|
2025-09-28 00:42:23 +02:00
|
|
|
target_include_directories(mach_detours
|
2025-09-30 00:09:10 +02:00
|
|
|
PUBLIC include
|
|
|
|
|
PRIVATE src
|
|
|
|
|
)
|
|
|
|
|
|
2025-10-01 23:04:46 +02:00
|
|
|
add_subdirectory(lib/catch2)
|
2025-10-01 23:07:06 +02:00
|
|
|
|
|
|
|
|
add_subdirectory(sample)
|
|
|
|
|
add_subdirectory(tests)
|