summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
blob: 0a3164413a8a2f30e44e91a77ca1b4cb4e2fbcae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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}/fs.c
    ${CMAKE_CURRENT_SOURCE_DIR}/fs.h
    ${CMAKE_CURRENT_SOURCE_DIR}/inject.c
    ${CMAKE_CURRENT_SOURCE_DIR}/inject.h
    ${CMAKE_CURRENT_SOURCE_DIR}/main.c
    ${CMAKE_CURRENT_SOURCE_DIR}/memory.c
    ${CMAKE_CURRENT_SOURCE_DIR}/memory.h
    ${CMAKE_CURRENT_SOURCE_DIR}/module.c
    ${CMAKE_CURRENT_SOURCE_DIR}/module.h
    ${CMAKE_CURRENT_SOURCE_DIR}/proc.c
    ${CMAKE_CURRENT_SOURCE_DIR}/proc.h
)

add_executable(hook ${HOOK_SOURCES})
target_compile_options(hook PUBLIC ${CFLAGS})