Skip to content

Commit 795ac3c

Browse files
authored
Merge pull request #59 from hugueskamba/hk_cmake_rename_targets
CMake: Use renamed Mbed CMake targets component
2 parents c11e5ee + 10dd561 commit 795ac3c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

CMakeLists.txt

Lines changed: 7 additions & 4 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 mbed-os-example-devicekey)
1010

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

1315
add_executable(${APP_TARGET})
@@ -24,10 +26,11 @@ target_sources(${APP_TARGET}
2426
)
2527

2628
target_link_libraries(${APP_TARGET}
27-
mbed-os
28-
mbed-os-storage-qspif
29-
mbed-os-device_key
30-
mbed-os-mbedtls
29+
PRIVATE
30+
mbed-os
31+
mbed-storage-qspif
32+
mbed-device_key
33+
mbed-mbedtls
3134
)
3235

3336
mbed_generate_bin_hex(${APP_TARGET})

0 commit comments

Comments
 (0)