Browse Source
This enables unfamiliar users to run the tests quickly without having to memorize all commandsline options.sbg
Lorenz Meier
5 years ago
4 changed files with 23 additions and 25 deletions
@ -1,19 +1,21 @@
@@ -1,19 +1,21 @@
|
||||
cmake_minimum_required(VERSION 3.5.1) |
||||
|
||||
find_package(MAVSDK REQUIRED) |
||||
find_package(MAVSDK) |
||||
|
||||
add_executable(mavsdk_tests |
||||
test_main.cpp |
||||
autopilot_tester.cpp |
||||
test_mission_multicopter.cpp |
||||
) |
||||
if (MAVSDK_FOUND) |
||||
add_executable(mavsdk_tests |
||||
test_main.cpp |
||||
autopilot_tester.cpp |
||||
test_mission_multicopter.cpp |
||||
) |
||||
|
||||
target_link_libraries(mavsdk_tests |
||||
MAVSDK::mavsdk |
||||
MAVSDK::mavsdk_action |
||||
MAVSDK::mavsdk_mission |
||||
MAVSDK::mavsdk_telemetry |
||||
) |
||||
target_link_libraries(mavsdk_tests |
||||
MAVSDK::mavsdk |
||||
MAVSDK::mavsdk_action |
||||
MAVSDK::mavsdk_mission |
||||
MAVSDK::mavsdk_telemetry |
||||
) |
||||
|
||||
target_compile_options(mavsdk_tests |
||||
PRIVATE -std=c++17 -Wall -Wextra -Werror) |
||||
target_compile_options(mavsdk_tests |
||||
PRIVATE -std=c++17 -Wall -Wextra -Werror) |
||||
endif() |
||||
|
Loading…
Reference in new issue