mavsdk_tests: MAVSDK is required

Without the library installed, we can't build and run the tests.
Silently ignoring this just leads to confusion.
This commit is contained in:
Julian Oes
2020-03-02 11:00:23 +01:00
committed by Nuno Marques
parent 32a6a4e8d8
commit e8e8b79322

View File

@@ -6,7 +6,7 @@ set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
find_package(MAVSDK QUIET)
find_package(MAVSDK REQUIRED)
if(MAVSDK_FOUND)
add_executable(mavsdk_tests