File tree Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Original file line number Diff line number Diff line change 1
1
# Copyright (c) 2020 ARM Limited. All rights reserved.
2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
- cmake_minimum_required (VERSION 3.18.2 FATAL_ERROR )
4
+ cmake_minimum_required (VERSION 3.19.0 FATAL_ERROR )
5
5
6
- # TODO: @mbed-os-tools MBED_ROOT and MBED_CONFIG_PATH should probably come from mbedtools
7
- set (MBED_ROOT ${CMAKE_CURRENT_SOURCE_DIR} /mbed-os CACHE INTERNAL "" )
6
+ set (MBED_PATH ${CMAKE_CURRENT_SOURCE_DIR} /mbed-os CACHE INTERNAL "" )
8
7
set (MBED_CONFIG_PATH ${CMAKE_CURRENT_SOURCE_DIR} /.mbedbuild CACHE INTERNAL "" )
9
8
set (APP_TARGET NFC_EEPROM )
10
9
11
- include (${MBED_ROOT } /tools/cmake/app.cmake )
10
+ include (${MBED_PATH } /tools/cmake/app.cmake )
12
11
13
- add_subdirectory (${MBED_ROOT } )
12
+ add_subdirectory (${MBED_PATH } )
14
13
15
14
add_executable (${APP_TARGET} )
16
15
@@ -40,7 +39,7 @@ target_link_libraries(${APP_TARGET}
40
39
mbed-nfc
41
40
)
42
41
43
- mbed_generate_bin_hex (${APP_TARGET} )
42
+ mbed_set_post_build (${APP_TARGET} )
44
43
45
44
option (VERBOSE_BUILD "Have a verbose build process" )
46
45
if (VERBOSE_BUILD )
Original file line number Diff line number Diff line change 1
1
# Copyright (c) 2020 ARM Limited. All rights reserved.
2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
- cmake_minimum_required (VERSION 3.18.2 FATAL_ERROR )
4
+ cmake_minimum_required (VERSION 3.19.0 FATAL_ERROR )
5
5
6
- # TODO: @mbed-os-tools MBED_ROOT and MBED_CONFIG_PATH should probably come from mbedtools
7
- set (MBED_ROOT ${CMAKE_CURRENT_SOURCE_DIR} /mbed-os CACHE INTERNAL "" )
6
+ set (MBED_PATH ${CMAKE_CURRENT_SOURCE_DIR} /mbed-os CACHE INTERNAL "" )
8
7
set (MBED_CONFIG_PATH ${CMAKE_CURRENT_SOURCE_DIR} /.mbedbuild CACHE INTERNAL "" )
9
8
set (APP_TARGET NFC_SmartPoster )
10
9
11
- include (${MBED_ROOT } /tools/cmake/app.cmake )
10
+ include (${MBED_PATH } /tools/cmake/app.cmake )
12
11
13
- add_subdirectory (${MBED_ROOT } )
12
+ add_subdirectory (${MBED_PATH } )
14
13
15
14
add_executable (${APP_TARGET} )
16
15
@@ -39,7 +38,7 @@ target_link_libraries(${APP_TARGET}
39
38
mbed-nfc
40
39
)
41
40
42
- mbed_generate_bin_hex (${APP_TARGET} )
41
+ mbed_set_post_build (${APP_TARGET} )
43
42
44
43
option (VERBOSE_BUILD "Have a verbose build process" )
45
44
if (VERBOSE_BUILD )
You can’t perform that action at this time.
0 commit comments