mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-13 22:21:52 +01:00
1471ea4338
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.
17 lines
368 B
CMake
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")
|