File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
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 getting-started )
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
22
- target_include_directories (mbed-os
24
+ target_include_directories (${APP_TARGET}
23
25
PUBLIC
24
26
${CMAKE_CURRENT_SOURCE_DIR}
25
27
)
@@ -30,8 +32,9 @@ target_sources(${APP_TARGET}
30
32
)
31
33
32
34
target_link_libraries (${APP_TARGET}
33
- mbed-os
34
- mbed-os-psa
35
+ PRIVATE
36
+ mbed-os
37
+ mbed-psa
35
38
)
36
39
37
40
mbed_generate_bin_hex (${APP_TARGET} )
You can’t perform that action at this time.
0 commit comments