28 lines
568 B
CMake
28 lines
568 B
CMake
cmake_minimum_required(VERSION 4.0)
|
|
project(mach_detours C CXX)
|
|
|
|
set(CMAKE_C_STANDARD 23)
|
|
set(CMAKE_CXX_STANDARD 23)
|
|
|
|
add_library(mach_detours SHARED
|
|
include/mach_detours.h
|
|
|
|
src/detours_internal.h
|
|
src/detours_disasm.h
|
|
src/mach_detours.c
|
|
|
|
src/arm64/detours_arm64.h
|
|
src/arm64/detours_arm64_disasm.cpp
|
|
)
|
|
target_include_directories(mach_detours
|
|
PUBLIC include
|
|
PRIVATE src
|
|
)
|
|
|
|
|
|
add_executable(mach_detours_sample
|
|
sample/main.c
|
|
)
|
|
target_link_libraries(mach_detours_sample
|
|
PRIVATE mach_detours
|
|
)
|