zephyr/cmake/usage/CMakeLists.txt

17 lines
427 B
CMake

string(REPLACE ";" " " BOARD_ROOT_SPACE_SEPARATED "${BOARD_ROOT}")
add_custom_target(
usage
${CMAKE_COMMAND}
-DBOARD_ROOT_SPACE_SEPARATED=${BOARD_ROOT_SPACE_SEPARATED}
-P ${CMAKE_CURRENT_SOURCE_DIR}/usage.cmake
)
add_custom_target(
kconfig-usage
${CMAKE_COMMAND} -P ${CMAKE_CURRENT_SOURCE_DIR}/kconfig-usage.cmake
)
# NB: The reason it is 'usage' and not help is that CMake already
# defines a target 'help'