-
Notifications
You must be signed in to change notification settings - Fork 851
/
CMakeLists.txt
42 lines (41 loc) · 1.04 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
set(TARGET_NAME hello_freertos1)
add_executable(${TARGET_NAME}
hello_freertos.c
)
target_include_directories(${TARGET_NAME} PRIVATE
${CMAKE_CURRENT_LIST_DIR}/..
)
target_link_libraries(${TARGET_NAME} PRIVATE
pico_async_context_freertos
FreeRTOS-Kernel-Heap4
pico_stdlib
)
if(PICO_CYW43_SUPPORTED)
# For led support on pico_w
target_link_libraries(${TARGET_NAME} PRIVATE
pico_cyw43_arch_none
)
endif()
target_compile_definitions(${TARGET_NAME} PRIVATE
configNUMBER_OF_CORES=1
)
pico_add_extra_outputs(${TARGET_NAME})
set(TARGET_NAME hello_freertos2)
add_executable(${TARGET_NAME}
hello_freertos.c
)
target_include_directories(${TARGET_NAME} PRIVATE
${CMAKE_CURRENT_LIST_DIR}/..
)
target_link_libraries(${TARGET_NAME} PRIVATE
pico_async_context_freertos
FreeRTOS-Kernel-Heap4
pico_stdlib
)
if(PICO_CYW43_SUPPORTED)
# For led support on pico_w
target_link_libraries(${TARGET_NAME} PRIVATE
pico_cyw43_arch_none
)
endif()
pico_add_extra_outputs(${TARGET_NAME})