2025-09-27 23:12:16 +02:00
|
|
|
cmake_minimum_required(VERSION 4.0)
|
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-09-29 23:36:09 +02:00
|
|
|
src/arm64/detours_arm64_disasm.cpp
|
2025-09-27 23:12:16 +02:00
|
|
|
)
|
2025-09-28 00:42:23 +02:00
|
|
|
|
|
|
|
|
target_include_directories(mach_detours
|
|
|
|
|
PUBLIC "include"
|
|
|
|
|
PRIVATE "src")
|