wut/samples/custom_default_heap/CMakeLists.txt
James Benton 6f877a2a3c Add new sample custom_default_heap.
Uses exported function __preinit_user which is called by coreinit to
initialise the default heap before the application is loaded.
2018-05-30 19:06:35 +01:00

21 lines
479 B
CMake

cmake_minimum_required(VERSION 3.2)
project(custom_default_heap C)
include("${WUT_ROOT}/share/wut.cmake" REQUIRED)
add_executable(custom_default_heap
main.c)
target_link_libraries(custom_default_heap
whb
proc_ui
sysapp)
wut_add_exports(custom_default_heap
exports.def)
wut_create_rpx(custom_default_heap.rpx
custom_default_heap)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/custom_default_heap.rpl"
DESTINATION "${CMAKE_INSTALL_PREFIX}")