file(GLOB FILELIST tasks.c queue.c list.c timers.c stream_buffer.c event_groups.c croutine.c portable/GCC/ARM_CM0/port.c portable/GCC/ARM_CM0/portasm.c portable/MemMang/heap_4.c ) set(TARGET freertos) add_library(${TARGET} STATIC ${FILELIST}) target_include_directories(${TARGET} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include) target_include_directories(${TARGET} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/portable/GCC/ARM_CM0)