STM32F407ZET6_MRB/Middlewares/CMakeLists.txt

67 lines
2.2 KiB
CMake

set(RTOS_SOURCES
"Third_Party/FreeRTOS/Source/croutine.c"
"Third_Party/FreeRTOS/Source/event_groups.c"
"Third_Party/FreeRTOS/Source/list.c"
"Third_Party/FreeRTOS/Source/queue.c"
"Third_Party/FreeRTOS/Source/stream_buffer.c"
"Third_Party/FreeRTOS/Source/tasks.c"
"Third_Party/FreeRTOS/Source/timers.c"
"Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c"
"Third_Party/FreeRTOS/Source/portable/MemMang/heap_5.c"
"Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c"
)
set(RTOS_INCLUDES
"../Core/Inc"
"../Core/Inc/SystemView"
"../Drivers/CMSIS/Include"
"../Drivers/CMSIS/Device/ST/STM32F4xx/Include"
"../Drivers/STM32F4xx_HAL_Driver/Inc"
"../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy"
"Third_Party/FreeRTOS/Source/include"
"Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2"
"Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F"
"Third_Party/SystemView_Target/SEGGER"
"Third_Party/SystemView_Target/Sample/FreeRTOSV10"
)
set(RTOS_DEFINES
"STM32F407xx"
"USE_HAL_DRIVER"
"USE_FULL_LL_DRIVER"
)
add_library(rtos STATIC ${RTOS_SOURCES})
target_include_directories(rtos PRIVATE ${RTOS_INCLUDES})
target_compile_definitions(rtos PRIVATE ${RTOS_DEFINES})
set(PRINTF_SOURCES
"Third_Party/printf/printf.c"
)
add_library(printf STATIC ${PRINTF_SOURCES})
set(SYSVIEW_SOURCES
"Third_Party/SystemView_Target/Sample/FreeRTOSV10/SEGGER_SYSVIEW_FreeRTOS.c"
"Third_Party/SystemView_Target/SEGGER/SEGGER_RTT.c"
"Third_Party/SystemView_Target/SEGGER/SEGGER_SYSVIEW.c"
"Third_Party/SystemView_Target/SEGGER/SEGGER_RTT_ASM_ARMv7M.S"
)
set(SYSVIEW_INCLUDES
"../Core/Inc"
"../Core/Inc/SystemView"
"../Drivers/CMSIS/Include"
"../Drivers/CMSIS/Device/ST/STM32F4xx/Include"
"../Drivers/STM32F4xx_HAL_Driver/Inc"
"../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy"
"Third_Party/FreeRTOS/Source/include"
"Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2"
"Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F"
"Third_Party/SystemView_Target/SEGGER"
"Third_Party/SystemView_Target/Sample/FreeRTOSV10"
)
add_library(systemview STATIC ${SYSVIEW_SOURCES})
target_include_directories(systemview PRIVATE ${SYSVIEW_INCLUDES})