mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2025-12-09 04:01:49 +08:00
Integration tests: Add Makefile target
This enables unfamiliar users to run the tests quickly without having to memorize all commandsline options.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user