19 lines
576 B
CMake
19 lines
576 B
CMake
|
|
file(GLOB FILELIST
|
||
|
|
mem.c
|
||
|
|
tlsf/tlsf.c
|
||
|
|
tlsf/port_tlsf.c
|
||
|
|
)
|
||
|
|
|
||
|
|
set(TARGET mm)
|
||
|
|
add_library(${TARGET} STATIC ${FILELIST})
|
||
|
|
|
||
|
|
target_include_directories(${TARGET} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||
|
|
|
||
|
|
target_include_directories(${TARGET} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/tlsf)
|
||
|
|
target_include_directories(${TARGET} PUBLIC ${SDK_BASE_DIR}/driver/inc)
|
||
|
|
target_include_directories(${TARGET} PUBLIC ${SDK_BASE_DIR}/driver/inc/reg)
|
||
|
|
target_compile_definitions(${TARGET} PUBLIC -DCONFIG_TLSF)
|
||
|
|
|
||
|
|
if(CONFIG_FREERTOS)
|
||
|
|
target_compile_definitions(-DconfigSTACK_ALLOCATION_FROM_SEPARATE_HEAP=1)
|
||
|
|
endif()
|