Lots of work on the build system

This commit is contained in:
Max Wash
2020-03-31 16:21:07 +01:00
parent 28256512c9
commit 76d1753ab5
11 changed files with 130 additions and 12 deletions

View File

@@ -4,5 +4,7 @@ foreach (test ${test_sources})
get_filename_component(test_name ${test} NAME_WE)
add_executable(${test_name} ${test} $<TARGET_OBJECTS:crt>)
target_compile_options(${test_name} PRIVATE -ffreestanding -nostdlib -nostdinc)
target_include_directories(${test_name} PRIVATE
${CMAKE_CURRENT_BINARY_DIR}/../sysroot/usr/include)
target_link_libraries(${test_name} c)
endforeach (test)

View File

@@ -1,3 +1,6 @@
#include <stdio.h>
#include <stdint.h>
int main(int argc, char **argv)
{
return 42;