-
Notifications
You must be signed in to change notification settings - Fork 40
/
CMakeLists.txt
62 lines (50 loc) · 1.26 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
cmake_minimum_required(VERSION 3.12)
project(ping-viewer LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CXX_STANDARD_REQUIRED ON)
set(QT_MIN_VERSION "5.15.0")
set(CMAKE_AUTOMOC ON)
set(AUTOMOC_MOC_OPTIONS -Muri=org.bluerobotics.pingviewer)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
# Defaults
include("cmake/default.cmake")
# Compiler information
include("cmake/compiler.cmake")
# Update submodules if necessary and load our GIT variables
include("cmake/git.cmake")
# Helper module
include("cmake/helper.cmake")
add_compile_definitions(
QT_USE_QSTRINGBUILDER
QT_NO_CAST_TO_ASCII
QT_STRICT_ITERATORS
QT_NO_CAST_FROM_BYTEARRAY
QT_USE_FAST_OPERATOR_PLUS
)
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS
Charts
Concurrent
Core
Network
Qml
Quick
QuickControls2
SerialPort
Svg
Test
Widgets
)
message(STATUS "Qt Version: ${Qt5_VERSION}")
# global include directories
include_directories(
lib/fmt/fmt/include/
lib/ping-cpp/ping-cpp/src/message/
lib/maddy/maddy/include/
lib/mavlink/c_library_v2/
lib/mavlink/c_library_v2/minimal
lib/mavlink/c_library_v2/common
)
add_subdirectory(lib/fmt/fmt)
add_subdirectory(src)