meta: add build system
This commit is contained in:
9
programs/test/CMakeLists.txt
Normal file
9
programs/test/CMakeLists.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
add_executable(test test.c)
|
||||
target_link_libraries(test c)
|
||||
|
||||
sysroot_add_program(
|
||||
NAME test
|
||||
BIN_DIR /usr/bin)
|
||||
bsp_add_program(
|
||||
NAME test
|
||||
BIN_DIR /usr/bin)
|
||||
6
programs/test/test.c
Normal file
6
programs/test/test.c
Normal file
@@ -0,0 +1,6 @@
|
||||
#include <function.h>
|
||||
|
||||
int _start(void)
|
||||
{
|
||||
return function();
|
||||
}
|
||||
Reference in New Issue
Block a user