-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
78 lines (60 loc) · 2.04 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
cmake_minimum_required(VERSION 3.5)
project(PoolsideGUI VERSION 2.0 LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(QT NAMES Qt6 COMPONENTS REQUIRED Core Gui Widgets SerialPort Network)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Gui Widgets SerialPort Network)
include_directories("${PROJECT_SOURCE_DIR}/Communication")
include_directories("${PROJECT_SOURCE_DIR}/Control")
include_directories("${PROJECT_SOURCE_DIR}/KX_Pult")
include_directories("${PROJECT_SOURCE_DIR}/PicFrame")
include_directories("${PROJECT_SOURCE_DIR}/StabilizationSettings")
include_directories("${PROJECT_SOURCE_DIR}/ThrusterSettings")
include_directories("${PROJECT_SOURCE_DIR}/UV")
include_directories("${PROJECT_SOURCE_DIR}")
set(PROJECT_SOURCES
main.cpp
mainwindow.cpp
Communication/SerialClient.cpp
Communication/UdpClient.cpp
Control/ControlBase.cpp
Control/Joystick.cpp
Control/Gamepad.cpp
# Control/Keyboard.cpp
KX_Pult/configdata.cpp
KX_Pult/kx_protocol.cpp
KX_Pult/qkx_coeffs.cpp
KX_Pult/qpiconfig.cpp
PicFrame/picframe.cpp
StabilizationSettings/StabilizationWindow.cpp
ThrusterSettings/Thruster.cpp
ThrusterSettings/ThrusterWindow.cpp
UV/ibasicdata.cpp
UV/icontroldata.cpp
UV/iserverdata.cpp
UV/ituningdata.cpp
UV/iuserinterfacedata.cpp
UV/uv_controlcontour.cpp
UV/uv_device.cpp
UV/uv_state.cpp
UV/uv_thruster.cpp
)
add_executable(${PROJECT_NAME}
${PROJECT_SOURCES}
images.qrc
)
target_link_libraries(${PROJECT_NAME} PRIVATE
sfml-graphics sfml-window sfml-system
Qt${QT_VERSION_MAJOR}::Core
Qt${QT_VERSION_MAJOR}::Gui
Qt${QT_VERSION_MAJOR}::Widgets
Qt${QT_VERSION_MAJOR}::SerialPort
Qt${QT_VERSION_MAJOR}::Network
)
set(CMAKE_AUTOUIC_SEARCH_PATHS
PicFrame
)