mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-13 12:42:36 +01:00
f281be50ab
RPL files are shared libraries (like a .dll file), as opposed to the RPX files which are executables (like a .exe file). Use rpl_main as defined in dynload.h like one would DllMain on Windows.
17 lines
384 B
CMake
17 lines
384 B
CMake
cmake_minimum_required(VERSION 3.2)
|
|
project(wutcrt C ASM)
|
|
|
|
add_library(wutcrt
|
|
crt0_rpx.s
|
|
wut_crt.c)
|
|
|
|
add_library(wutcrtrpl
|
|
crt0_rpl.s
|
|
wut_crt.c)
|
|
|
|
target_include_directories(wutcrt PRIVATE "${WUT_ROOT}/include")
|
|
target_include_directories(wutcrtrpl PRIVATE "${WUT_ROOT}/include")
|
|
|
|
install(TARGETS wutcrt wutcrtrpl
|
|
ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")
|