sitl_target.cmake: create a symlink to the log directory in the build dir

Allowing for easier access to SITL logs.
This commit is contained in:
Beat Küng
2017-04-07 16:59:52 +02:00
committed by Lorenz Meier
parent 7f0db95f87
commit 685f114d29
+6
View File
@@ -43,6 +43,12 @@ px4_add_sitl_app(APP_NAME px4
set(SITL_WORKING_DIR ${PX4_BINARY_DIR}/tmp)
file(MAKE_DIRECTORY ${SITL_WORKING_DIR})
# add a symlink to the logs dir to make it easier to find them
add_custom_target(logs_symlink ALL
COMMAND ${CMAKE_COMMAND} -E create_symlink tmp/rootfs/fs/microsd/log logs
WORKING_DIRECTORY ${PX4_BINARY_DIR}
)
add_custom_target(run_config
COMMAND Tools/sitl_run.sh
$<TARGET_FILE:px4>