wut/libraries/wutcrt/CMakeLists.txt
James Benton b4a6eb2f78 Split out crt from wutnewlib to wutcrt.
Can now optionally link newlib, stdc++, devoptab.
2018-05-27 12:12:49 +01:00

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")