Skip to content

CMake: Call mbed_set_post_build API for setting post build operations #338

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions BLE_LED/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

cmake_minimum_required(VERSION 3.18.2 FATAL_ERROR)
cmake_minimum_required(VERSION 3.19.0 FATAL_ERROR)

# TODO: @mbed-os-tools MBED_ROOT and MBED_CONFIG_PATH should probably come from mbedtools
set(MBED_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/mbed-os CACHE INTERNAL "")
set(MBED_PATH ${CMAKE_CURRENT_SOURCE_DIR}/mbed-os CACHE INTERNAL "")
set(MBED_CONFIG_PATH ${CMAKE_CURRENT_SOURCE_DIR}/.mbedbuild CACHE INTERNAL "")
set(APP_TARGET BLE_LED)

include(${MBED_ROOT}/tools/cmake/app.cmake)
include(${MBED_PATH}/tools/cmake/app.cmake)

add_subdirectory(${MBED_ROOT})
add_subdirectory(${MBED_PATH})

add_executable(${APP_TARGET})

Expand Down Expand Up @@ -39,7 +38,7 @@ target_link_libraries(${APP_TARGET}
mbed-ble-blue_nrg
)

mbed_generate_bin_hex(${APP_TARGET})
mbed_set_post_build(${APP_TARGET})

option(VERBOSE_BUILD "Have a verbose build process")
if(VERBOSE_BUILD)
Expand Down