wut/libraries/wutnewlib/CMakeLists.txt
James Benton 1471ea4338 Change wutnewlib to implement malloc family of functions.
This allows us to forward them straight to default heap functions, this
is better than having to allocate a fixed heap for sbrk as it allows
people to better mix usage malloc & default heap functions.
2018-06-13 18:38:53 +01:00

17 lines
368 B
CMake

cmake_minimum_required(VERSION 3.2)
project(wutnewlib C)
add_library(wutnewlib
wut_clock.c
wut_gettod_r.c
wut_lock.c
wut_malloc.c
wut_malloc_lock.c
wut_nanosleep.c
wut_newlib.c
wut_sbrk.c)
target_include_directories(wutnewlib PRIVATE "${WUT_ROOT}/include")
install(TARGETS wutnewlib
ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")