mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-13 12:42:36 +01:00
8af0ffe9c7
The old makefile solution will still be around on branch "make".
17 lines
407 B
CMake
17 lines
407 B
CMake
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
|
|
memory.c)
|
|
set_target_properties(crt PROPERTIES
|
|
COMPILE_FLAGS "-fno-builtin -ffreestanding")
|
|
target_include_directories(crt PRIVATE "../include")
|
|
|
|
install(TARGETS crt ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")
|