2022-12-23 13:09:21 +01:00
|
|
|
function(luna_app SOURCE_FILE APP_NAME)
|
|
|
|
add_executable(${APP_NAME} ${SOURCE_FILE})
|
2023-01-10 18:13:21 +01:00
|
|
|
target_compile_options(${APP_NAME} PRIVATE -Os -Wall -Wextra -pedantic -Werror)
|
2023-01-06 13:31:14 +01:00
|
|
|
add_dependencies(${APP_NAME} libc)
|
2023-01-07 00:21:08 +01:00
|
|
|
target_include_directories(${APP_NAME} PRIVATE ${LUNA_BASE}/usr/include)
|
2023-01-06 13:31:14 +01:00
|
|
|
install(TARGETS ${APP_NAME} DESTINATION ${LUNA_ROOT}/initrd/bin)
|
2022-12-23 13:09:21 +01:00
|
|
|
endfunction()
|
|
|
|
|
2023-03-18 19:23:18 +01:00
|
|
|
luna_app(init.c init)
|
2023-03-16 22:44:58 +01:00
|
|
|
luna_app(hello.c hello)
|