Luna/apps/CMakeLists.txt

13 lines
453 B
CMake
Raw Normal View History

2022-12-23 12:09:21 +00:00
function(luna_app SOURCE_FILE APP_NAME)
add_executable(${APP_NAME} ${SOURCE_FILE})
2023-01-10 17:13:21 +00:00
target_compile_options(${APP_NAME} PRIVATE -Os -Wall -Wextra -pedantic -Werror)
add_dependencies(${APP_NAME} libc)
2023-01-06 23:21:08 +00:00
target_include_directories(${APP_NAME} PRIVATE ${LUNA_BASE}/usr/include)
install(TARGETS ${APP_NAME} DESTINATION ${LUNA_ROOT}/initrd/bin)
2022-12-23 12:09:21 +00:00
endfunction()
luna_app(init.c init)
2023-03-23 23:52:26 +00:00
luna_app(cat.c cat)
luna_app(edit.c edit)
2023-03-23 21:19:54 +00:00
luna_app(sh.c sh)