mavsdk_tests: build should be independant of px4

This commit is contained in:
Daniel Agar
2020-01-01 21:30:59 -05:00
parent 7775dfbc56
commit 1edfee4fdd
5 changed files with 42 additions and 26 deletions

View File

@@ -45,6 +45,18 @@ ExternalProject_Add(sitl_gazebo
BUILD_ALWAYS 1
)
ExternalProject_Add(mavsdk_tests
SOURCE_DIR ${PX4_SOURCE_DIR}/test/mavsdk_tests
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
BINARY_DIR ${PX4_BINARY_DIR}/mavsdk_tests
INSTALL_COMMAND ""
USES_TERMINAL_CONFIGURE true
USES_TERMINAL_BUILD true
EXCLUDE_FROM_ALL true
BUILD_ALWAYS 1
)
# create targets for each viewer/model/debugger combination
set(viewers none jmavsim gazebo)
set(debuggers none ide gdb lldb ddd valgrind callgrind)