Skip to content

Commit ef37c95

Browse files
authored
Merge pull request #202 from hugueskamba/hk_cmake_rename_targets
CMake: Use renamed Mbed CMake targets component
2 parents d0e687f + 7159342 commit ef37c95

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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 mbed-os-example-cellular)
1010

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

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

2628
target_link_libraries(${APP_TARGET}
27-
mbed-os
28-
mbed-os-cellular
29+
PRIVATE
30+
mbed-os
31+
mbed-cellular
2932
)
3033

3134
mbed_generate_bin_hex(${APP_TARGET})

0 commit comments

Comments
 (0)