~aleteoryx/muditaos

ref: 6912ec26dd6ae4afea3467bd5d33d72df8be75c8 muditaos/module-bsp/board/rt1051/os/CMakeLists.txt -rw-r--r-- 841 bytes
6912ec26 — Adam Wulkiewicz [BH-1656] Use fixed gt pressura 46 light 2 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
36
37
38
39
add_library(module-bsp-os

        __atexit.c
        __call_atexit.c
        _exit.cpp
        fsl_tickless_gpt.c
        fsl_runtimestat_gpt.c
        )

add_library(module-bsp::os ALIAS module-bsp-os)

if (${CMAKE_BUILD_TYPE} STREQUAL "Debug" OR ${CMAKE_BUILD_TYPE} STREQUAL "RelWithDebInfo")
    target_compile_definitions(module-bsp-os PUBLIC DEBUG_FREERTOS)
endif ()

target_include_directories(module-bsp-os
        PUBLIC
        include
        )

target_compile_options(module-bsp-os PRIVATE "-Wno-prio-ctor-dtor")

target_link_libraries(module-bsp-os
        PRIVATE
        module-vfs
        logdump
        PUBLIC
        fsl
        cmsis
        )

# Set required FreeRTOS CMake flags
set(FREERTOS_PORT GCC_ARM_CM7 CACHE STRING "")
set(FREERTOS_CONFIG_FILE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include CACHE STRING "")