Skip to content

Commit c920cc0

Browse files
authored
Merge pull request #86 from hugueskamba/hk_cmake_rename_targets
CMake: Use renamed Mbed CMake targets component
2 parents 5fe4f0e + 5909295 commit c920cc0

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

NFC_EEPROM/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ set(MBED_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/mbed-os CACHE INTERNAL "")
88
set(MBED_CONFIG_PATH ${CMAKE_CURRENT_SOURCE_DIR}/.mbedbuild CACHE INTERNAL "")
99
set(APP_TARGET NFC_EEPROM)
1010

11+
include(${MBED_ROOT}/tools/cmake/app.cmake)
12+
1113
add_subdirectory(${MBED_ROOT})
1214

1315
add_executable(${APP_TARGET})
@@ -33,8 +35,9 @@ target_sources(${APP_TARGET}
3335
)
3436

3537
target_link_libraries(${APP_TARGET}
36-
mbed-os
37-
mbed-os-nfc
38+
PRIVATE
39+
mbed-os
40+
mbed-nfc
3841
)
3942

4043
mbed_generate_bin_hex(${APP_TARGET})

NFC_SmartPoster/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ set(MBED_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/mbed-os CACHE INTERNAL "")
88
set(MBED_CONFIG_PATH ${CMAKE_CURRENT_SOURCE_DIR}/.mbedbuild CACHE INTERNAL "")
99
set(APP_TARGET NFC_SmartPoster)
1010

11+
include(${MBED_ROOT}/tools/cmake/app.cmake)
12+
1113
add_subdirectory(${MBED_ROOT})
1214

1315
add_executable(${APP_TARGET})
@@ -32,8 +34,9 @@ target_sources(${APP_TARGET}
3234
)
3335

3436
target_link_libraries(${APP_TARGET}
35-
mbed-os
36-
mbed-os-nfc
37+
PRIVATE
38+
mbed-os
39+
mbed-nfc
3740
)
3841

3942
mbed_generate_bin_hex(${APP_TARGET})

0 commit comments

Comments
 (0)