mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-13 14:42:38 +01:00
a9829a3226
Overwrites bits/gthr-default.h to implement gthreads.
26 lines
638 B
CMake
26 lines
638 B
CMake
cmake_minimum_required(VERSION 3.2)
|
|
|
|
macro(wut_enable_stdcpp target)
|
|
target_link_libraries(${target}
|
|
wutstdc++)
|
|
|
|
target_compile_definitions(${target}
|
|
PRIVATE _GLIBCXX_HAS_GTHREADS)
|
|
|
|
set_target_properties(${target} PROPERTIES
|
|
COMPILE_FLAGS "-std=c++17")
|
|
endmacro(wut_enable_stdcpp)
|
|
|
|
macro(wut_create_rpx target source)
|
|
target_link_libraries(${source}
|
|
wutnewlib
|
|
coreinit)
|
|
|
|
add_custom_target(${target} ALL
|
|
COMMAND ${WUT_ELF2RPL} ${source} ${target}
|
|
DEPENDS ${source}
|
|
COMMENT "Converting to RPX ${target}")
|
|
|
|
add_dependencies(${target} ${source})
|
|
endmacro(wut_create_rpx)
|