-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
88 lines (74 loc) · 1.77 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
85
86
87
88
cmake_minimum_required(VERSION 3.24)
list(APPEND CMAKE_MODULE_PATH
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/cmake
)
project(wtplotter
LANGUAGES CXX
VERSION 0.2.4
HOMEPAGE_URL github.com/Sgambe33/WT-Plotter
DESCRIPTION "GUI tool to read War Thunder replays and plot ground matches"
)
include(Options)
include(Setup)
include(Deploy)
find_package(Qt${QT_VERSION_MAJOR}
REQUIRED
Widgets
Svg
Network
OPTIONAL_COMPONENTS
LinguistTools
)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
qt_add_executable(wtplotter
main.cpp
mainwindow.cpp
mainwindow.h
mainwindow.ui
preferencesdialog.cpp
preferencesdialog.h
preferencesdialog.ui
SceneImageViewer.cpp
sceneimageviewer.h
worker.cpp
worker.h
classes/craftinfo.cpp
classes/craftinfo.h
classes/playerinfo.cpp
classes/playerinfo.h
classes/player.cpp
classes/player.h
classes/replay.cpp
classes/replay.h
classes/position.cpp
classes/position.h
)
file(GLOB_RECURSE ICONS
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
CONFIGURE_DEPENDS resources/icons/*
)
file(GLOB_RECURSE MAP_IMAGES
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
CONFIGURE_DEPENDS resources/map_images/*
)
file(GLOB TRANSLATIONS
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
CONFIGURE_DEPENDS resources/translations/*.ts
)
qt_add_resources(wtplotter
resources
PREFIX /
BASE resources
FILES ${ICONS} ${MAP_IMAGES}
)
app_add_translations(wtplotter TS_FILES ${TRANSLATIONS})
target_link_libraries(wtplotter PRIVATE
Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::Network
)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/version.h.in
${CMAKE_CURRENT_SOURCE_DIR}/version.h
@ONLY
)
deploy(wtplotter deploy)