-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
54 lines (46 loc) · 1.48 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.8)
project(Aimbot)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set (HEADERS
"include/Aimbot.h"
"include/MemoryManager.h"
"include/FileReader.h"
"include/ToggleButton.h"
"include/Offsets.h"
"include/Vec3D.h"
"include/Vec2D.h"
"include/Entity.h"
"include/ConfigData.h"
)
set(SOURCES
"src/Aimbot.cpp"
"src/main.cpp"
"src/MemoryManager.cpp"
"src/FileReader.cpp"
"src/ToggleButton.cpp"
"src/Offsets.cpp"
)
add_executable(Aimbot ${SOURCES} ${HEADERS})
target_include_directories(Aimbot PUBLIC "include")
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT Aimbot)
set_property(TARGET Aimbot PROPERTY VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}")
add_custom_command(TARGET Aimbot
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_SOURCE_DIR}"/config.txt"
${CMAKE_SOURCE_DIR}"/build/debug/config.txt")
add_custom_command(TARGET Aimbot
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_SOURCE_DIR}"/config.txt"
${CMAKE_SOURCE_DIR}"/build/Release/config.txt")
add_custom_command(TARGET Aimbot
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_SOURCE_DIR}"/memoryOffsets.txt"
${CMAKE_SOURCE_DIR}"/build/debug/memoryOffsets.txt")
add_custom_command(TARGET Aimbot
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_SOURCE_DIR}"/memoryOffsets.txt"
${CMAKE_SOURCE_DIR}"/build/Release/memoryOffsets.txt")