File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ set(MBED_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/mbed-os CACHE INTERNAL "")
8
8
set (MBED_CONFIG_PATH ${CMAKE_CURRENT_SOURCE_DIR} /.mbedbuild CACHE INTERNAL "" )
9
9
set (APP_TARGET mbed-os-example-lorawan )
10
10
11
+ include (${MBED_ROOT} /tools/cmake/app.cmake )
12
+
11
13
add_subdirectory (${MBED_ROOT} )
12
14
13
15
add_executable (${APP_TARGET} )
@@ -19,7 +21,7 @@ mbed_set_mbed_target_linker_script(${APP_TARGET})
19
21
project (${APP_TARGET} )
20
22
21
23
# Provide Mbed OS with the header file it needs to configure Mbed TLS for LoRa
22
- target_include_directories (mbed-os
24
+ target_include_directories (${APP_TARGET}
23
25
PUBLIC
24
26
${CMAKE_CURRENT_SOURCE_DIR}
25
27
)
@@ -31,9 +33,10 @@ target_sources(${APP_TARGET}
31
33
)
32
34
33
35
target_link_libraries (${APP_TARGET}
34
- mbed-os
35
- mbed-os-lorawan
36
- mbed-os-mbedtls
36
+ PRIVATE
37
+ mbed-os
38
+ mbed-lorawan
39
+ mbed-mbedtls
37
40
)
38
41
39
42
mbed_generate_bin_hex (${APP_TARGET} )
You can’t perform that action at this time.
0 commit comments