forked from F8LEFT/FAInHook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
executable file
·40 lines (35 loc) · 1.29 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
set(ProjectName FAInHook)
if(ANDROID_ABI MATCHES "armeabi(-v7a)?")
set(INSTRUCTION instruction/Instruction.cpp
instruction/ThumbInstruction.cpp
instruction/ArmInstruction.cpp)
elseif(ANDROID_ABI STREQUAL "arm64-v8a")
set(INSTRUCTION instruction/Instruction.cpp
instruction/Arm64Instruction.cpp)
elseif(ANDROID_ABI MATCHES "x86(_64)?")
set(INSTRUCTION instruction/Instruction.cpp
instruction/IntelInstruction.cpp
instruction/IntelDisasm.cpp)
elseif(ANDROID_ABI STREQUAL "mips")
set(INSTRUCTION instruction/Instruction.cpp
instruction/MipsInstruction.cpp)
elseif(ANDROID_ABI STREQUAL "mips64")
set(INSTRUCTION instruction/Instruction.cpp
instruction/Mips64Instruction.cpp)
endif()
set(SOURCE FAInHook.cpp MemHelper.cpp ${INSTRUCTION})
if(CMAKE_BUILD_TYPE MATCHES "Debug")
set(FA_EXTLIB log)
endif()
if(FA_STATIC)
add_definitions(-DFA_STATIC)
add_library( ${ProjectName}
STATIC
${SOURCE})
else()
add_library( ${ProjectName}
SHARED
${SOURCE} main.cpp)
endif()
target_link_libraries( ${ProjectName}
${FA_EXTLIB} dl)