From b97db529be365851633a6cc1c9285d930209049d Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Sun, 22 Jan 2023 02:56:48 +0100 Subject: hook stash: a1af9ba65d57be898e079a98229845f42069c1e6 --- src/hook/CMakeLists.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/hook/CMakeLists.txt (limited to 'src/hook/CMakeLists.txt') diff --git a/src/hook/CMakeLists.txt b/src/hook/CMakeLists.txt new file mode 100644 index 0000000..79a7186 --- /dev/null +++ b/src/hook/CMakeLists.txt @@ -0,0 +1,22 @@ + +# get all modules first + +list(APPEND + HOOK_SOURCES + ${CMAKE_CURRENT_SOURCE_DIR}/arch.c + ${CMAKE_CURRENT_SOURCE_DIR}/arch.h + ${CMAKE_CURRENT_SOURCE_DIR}/hook.c + ${CMAKE_CURRENT_SOURCE_DIR}/hook.h + ${CMAKE_CURRENT_SOURCE_DIR}/inject.c + ${CMAKE_CURRENT_SOURCE_DIR}/inject.h + ${CMAKE_CURRENT_SOURCE_DIR}/memory.c + ${CMAKE_CURRENT_SOURCE_DIR}/memory.h + ${CMAKE_CURRENT_SOURCE_DIR}/module.c + ${CMAKE_CURRENT_SOURCE_DIR}/module.h +) +add_subdirectory(payloads) + +add_library(hook STATIC ${HOOK_SOURCES}) +target_compile_options(hook PUBLIC ${CFLAGS}) +target_include_directories(hook PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) +target_include_directories(hook PUBLIC ${CMAKE_CURRENT_BINARY_DIR}) -- cgit v1.2.3