zephyr/cmake/emu/native.cmake

12 lines
319 B
CMake

# SPDX-License-Identifier: Apache-2.0
add_custom_target(run_native
COMMAND
${APPLICATION_BINARY_DIR}/zephyr/${KERNEL_EXE_NAME}
DEPENDS
${logical_target_for_zephyr_elf}
$<$<TARGET_EXISTS:native_runner_executable>:native_runner_executable>
WORKING_DIRECTORY ${APPLICATION_BINARY_DIR}
USES_TERMINAL
)