diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2023-01-22 02:56:48 +0100 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2023-08-05 22:15:10 +0200 |
commit | b97db529be365851633a6cc1c9285d930209049d (patch) | |
tree | 7a73d6adf71797b9308692a03253d15d3703b5a8 /src/hook/CMakeLists.txt | |
parent | 045e16665a55e2b7b6dc2e953c91f2125f61e083 (diff) | |
download | OFQT-b97db529be365851633a6cc1c9285d930209049d.tar.gz OFQT-b97db529be365851633a6cc1c9285d930209049d.zip |
hook stash: a1af9ba65d57be898e079a98229845f42069c1e6hook
Diffstat (limited to 'src/hook/CMakeLists.txt')
-rw-r--r-- | src/hook/CMakeLists.txt | 22 |
1 files changed, 22 insertions, 0 deletions
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}) |