-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
84 lines (61 loc) · 1.66 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
cmake_minimum_required(VERSION 3.20)
project(QExileBot VERSION 0.1 LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
find_package(Qt6 REQUIRED COMPONENTS Widgets)
find_package(Qt6 REQUIRED COMPONENTS Network)
find_package(Qt6 REQUIRED COMPONENTS WebEngineWidgets)
find_package(Qt6 REQUIRED COMPONENTS Qml)
add_executable(QExileBot
main.cpp
MainWindow.cpp
MainWindow.h
MainWindow.ui
Account.cpp
Account.h
AccountModel.cpp
AccountModel.h
Character.h
CharacterModel.h
ExileSocket.cpp
ExileSocket.h
Packet.h
PacketField.h
PacketListModel.h
ExileClient.cpp
ExileClient.h
Buffer.h
Buffer.cpp
ExileGame.cpp
ExileGame.h
GameObject.h
GameObject.cpp
GameObjectScene.h
Item.cpp
Item.h
Global.h
Helper.h
Helper.cpp
AStar/astar.cpp
AStar/astar.h
AStar/blockallocator.cpp
AStar/blockallocator.h
QExileBot.qrc
)
if (MSVC AND WIN32 AND NOT MSVC_VERSION VERSION_LESS 142)
target_link_options(${PROJECT_NAME} PRIVATE $<$<CONFIG:Debug>:/INCREMENTAL>)
target_compile_options(${PROJECT_NAME} PRIVATE $<$<CONFIG:Debug>:/ZI>)
endif()
target_link_libraries(QExileBot PRIVATE Qt6::Widgets)
target_link_libraries(QExileBot PRIVATE Qt6::Network)
target_link_libraries(QExileBot PRIVATE Qt6::WebEngineWidgets)
target_link_libraries(QExileBot PRIVATE Qt6::Qml)
# vcpkg
include("D:/vcpkg/scripts/buildsystems/vcpkg.cmake")
# cryptopp
find_package(cryptopp CONFIG REQUIRED)
target_link_libraries(QExileBot PRIVATE cryptopp-static)