This repository has been archived by the owner on Apr 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
55 lines (45 loc) · 1.62 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
cmake_minimum_required(VERSION 3.5)
project(RCCar LANGUAGES CXX C)
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)
set(CMAKE_C_STANDARD 23)
set(CMAKE_C_STANDARD_REQUIRED ON)
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()
find_package(Qt5 COMPONENTS Core Network SerialPort REQUIRED)
find_package(MAVSDK REQUIRED)
add_executable(RCCar_minimal
main.cpp
WayWise/core/simplewatchdog.cpp
WayWise/vehicles/objectstate.cpp
WayWise/vehicles/carstate.cpp
WayWise/core/vbytearray.cpp
WayWise/vehicles/controller/motorcontroller.h
WayWise/vehicles/controller/movementcontroller.cpp
WayWise/vehicles/controller/servocontroller.cpp
WayWise/vehicles/vehiclestate.cpp
WayWise/core/pospoint.cpp
WayWise/vehicles/controller/carmovementcontroller.cpp
WayWise/sensors/gnss/ublox.cpp
WayWise/sensors/gnss/rtcm3_simple.cpp
WayWise/sensors/gnss/ubloxrover.cpp
WayWise/sensors/camera/gimbal.h
WayWise/communication/vehicleconnections/vehicleconnection.cpp
WayWise/communication/mavlinkparameterserver.cpp
WayWise/communication/parameterserver.cpp
WayWise/autopilot/waypointfollower.h
WayWise/autopilot/purepursuitwaypointfollower.cpp
WayWise/communication/mavsdkvehicleserver.cpp
WayWise/logger/logger.cpp
)
target_include_directories(RCCar_minimal PRIVATE WayWise/)
target_link_libraries(RCCar_minimal
PRIVATE Qt5::Network
PRIVATE Qt5::SerialPort
PRIVATE MAVSDK::mavsdk
)