cmake_minimum_required(VERSION 3.22)

file(GLOB_RECURSE FREERTOS_SOURCES "${CMAKE_CURRENT_LIST_DIR}/Source/*.c")

add_library(freertos ${FREERTOS_SOURCES})

target_include_directories(freertos PUBLIC
  "${CMAKE_CURRENT_LIST_DIR}/Source/CMSIS_RTOS"
  "${CMAKE_CURRENT_LIST_DIR}/Source/include"
  "${CMAKE_CURRENT_LIST_DIR}/Source/portable/GCC/ARM_CM4F"
)
