mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-13 22:21:52 +01:00
d315b4bb34
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.
24 lines
525 B
CMake
24 lines
525 B
CMake
cmake_minimum_required(VERSION 3.2)
|
|
project(helloworld_cpp CXX)
|
|
include("${WUT_ROOT}/share/wut.cmake" REQUIRED)
|
|
|
|
add_executable(helloworld_cpp
|
|
main.cpp)
|
|
|
|
target_link_libraries(helloworld_cpp
|
|
whb
|
|
coreinit
|
|
proc_ui
|
|
sysapp
|
|
nn_ac)
|
|
|
|
wut_default_malloc(helloworld_cpp)
|
|
wut_enable_newlib(helloworld_cpp)
|
|
wut_enable_stdcpp(helloworld_cpp)
|
|
|
|
wut_create_rpx(helloworld_cpp.rpx
|
|
helloworld_cpp)
|
|
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/helloworld_cpp.rpx"
|
|
DESTINATION "${CMAKE_INSTALL_PREFIX}")
|