~aleteoryx/muditaos

ref: 5418f9b5e7a453074dafc69e67e6a21cc1c3ed35 muditaos/module-os/board/rt1051/CMakeLists.txt -rw-r--r-- 743 bytes
5418f9b5 — Alek Rudnik [EGD-7423] Fix for _exit() not included in binary 4 years ago
                                                                                
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
target_sources(
        module-os
    PRIVATE
        fsl_tickless_gpt.c
        fsl_tickless_systick.c
        fsl_runtimestat_gpt.c

        $<$<BOOL:${SYSTEM_VIEW_ENABLED}>:
            systemview/port.c
            systemview/tasks.c
        >
        $<$<NOT:$<BOOL:${SYSTEM_VIEW_ENABLED}>>:
            port.c
        >
)

target_include_directories(
        module-os
    PUBLIC
        $<BUILD_INTERFACE:
            $<$<BOOL:${SYSTEM_VIEW_ENABLED}>:
                systemview
            >
            $<$<NOT:$<BOOL:${SYSTEM_VIEW_ENABLED}>>:
                ${CMAKE_CURRENT_SOURCE_DIR}
            >
            ${CMAKE_CURRENT_SOURCE_DIR}/include
        >
)

target_link_libraries(module-os
    PUBLIC
        fsl
        cmsis
)