mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-13 12:42:36 +01:00
b4a6eb2f78
Can now optionally link newlib, stdc++, devoptab.
13 lines
298 B
CMake
13 lines
298 B
CMake
cmake_minimum_required(VERSION 3.2)
|
|
project(wutnewlib C)
|
|
|
|
set_property(SOURCE crt0.s PROPERTY LANGUAGE C)
|
|
|
|
add_library(wutcrt
|
|
crt0.s
|
|
wut_crt.c)
|
|
target_include_directories(wutcrt PRIVATE "${WUT_ROOT}/include")
|
|
|
|
install(TARGETS wutcrt
|
|
ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")
|