wut/libraries/wutmalloc/CMakeLists.txt
James Benton d315b4bb34 Add new wutmalloc library.
This overwrites malloc and redirects it to alloc from default heap.
Also sets __wut_heap_max_size to limit sbrk heap now that malloc no longer
uses it.
2018-06-14 09:33:16 +01:00

10 lines
251 B
CMake

cmake_minimum_required(VERSION 3.2)
project(wutmalloc C)
add_library(wutmalloc
wut_malloc.c)
target_include_directories(wutmalloc PRIVATE "${WUT_ROOT}/include")
install(TARGETS wutmalloc
ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")