wut/crt/CMakeLists.txt

18 lines
432 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.2)
project(wut-crt)
include(../cmake/wut-toolchain.cmake)
set_property(SOURCE crt0.S PROPERTY LANGUAGE C)
add_library(crt
crt0.S
fs_dev.c
2017-04-11 00:18:39 +02:00
newlib.c)
set_target_properties(crt PROPERTIES
2017-04-11 00:18:39 +02:00
COMPILE_FLAGS "-fno-builtin -ffreestanding"
LINKER_FLAGS "-fPIC")
target_include_directories(crt PRIVATE "../include")
install(TARGETS crt ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")