forked from bbgsm/ue4_cheat_engine
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
54 lines (42 loc) · 1.86 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
cmake_minimum_required(VERSION 3.6)
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIE -Os -Wall -s -mllvm -sub -mllvm -fla -mllvm -sobf ")
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -Os -Wall -Wextra -s -mllvm -sub -mllvm -fla -mllvm -sobf ")
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/arm/${ANDROID_ABI}/) #设置可执行文件的输出目录
SET(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/arm/${ANDROID_ABI}/) #设置库文件的输出目录
set(TOOL_PATH "MTools")
set(HV_PATH "Script/libhv_static")
set(LUA_PATH "Script/liblua_static")
include_directories(
"src/include"
"${TOOL_PATH}/include"
"${HV_PATH}/include"
"${LUA_PATH}/include"
)
set(
SORCES
${TOOL_PATH}/ByteUtil.cpp
${TOOL_PATH}/DataDec.cpp
${TOOL_PATH}/DataEnc.cpp
${TOOL_PATH}/GameTools.cpp
${TOOL_PATH}/MemoryTools.cpp
${TOOL_PATH}/SocketTools.cpp
${TOOL_PATH}/TimeTools.cpp
${TOOL_PATH}/UDPClient.cpp
${TOOL_PATH}/UDPServer.cpp
${TOOL_PATH}/TCPClient.cpp
${TOOL_PATH}/TCPServer.cpp
${TOOL_PATH}/BinCCation.cpp
${TOOL_PATH}/abiUtil.cpp
${TOOL_PATH}/IOUtils.cpp
)
add_library(hv_static STATIC IMPORTED)
set_target_properties(hv_static PROPERTIES IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/${HV_PATH}/${ANDROID_ABI}/libhv_static.a)
add_library(lua_static STATIC IMPORTED)
set_target_properties(lua_static PROPERTIES IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/${LUA_PATH}/${ANDROID_ABI}/liblua_static.a)
add_executable(fpsGame ${SORCES} src/fpsGame.cpp)
add_executable(mobaGame ${SORCES} src/mobaGame.cpp)
#add_executable(send ${SORCES} tools/send.cpp)
#add_executable(recv ${SORCES} tools/recv.cpp)
#add_executable(tt ${SORCES} tools/test.cpp)
target_link_libraries(fpsGame log lua_static hv_static)
target_link_libraries(mobaGame log lua_static hv_static)