Skip to content

Commit 7282538

Browse files
authored
Merge pull request #330 from hugueskamba/hk_cmake_rename_targets
CMake: Use renamed Mbed CMake targets component
2 parents 37e1926 + 607eeb0 commit 7282538

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

BLE_LED/CMakeLists.txt

Lines changed: 8 additions & 5 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 BLE_LED)
1010

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

1315
add_executable(${APP_TARGET})
@@ -29,11 +31,12 @@ target_sources(${APP_TARGET}
2931
)
3032

3133
target_link_libraries(${APP_TARGET}
32-
mbed-os
33-
mbed-os-events
34-
mbed-os-ble
35-
mbed-os-ble-cordio
36-
mbed-os-ble-blue_nrg
34+
PRIVATE
35+
mbed-os
36+
mbed-events
37+
mbed-ble
38+
mbed-ble-cordio
39+
mbed-ble-blue_nrg
3740
)
3841

3942
mbed_generate_bin_hex(${APP_TARGET})

0 commit comments

Comments
 (0)