Luna/apps/CMakeLists.txt
apio 7b0b3dabc4
All checks were successful
continuous-integration/drone/push Build is passing
apps: Add ls
2023-03-29 01:07:58 +02:00

15 lines
493 B
CMake

function(luna_app SOURCE_FILE APP_NAME)
add_executable(${APP_NAME} ${SOURCE_FILE})
target_compile_options(${APP_NAME} PRIVATE -Os -Wall -Wextra -pedantic -Werror)
add_dependencies(${APP_NAME} libc)
target_include_directories(${APP_NAME} PRIVATE ${LUNA_BASE}/usr/include)
install(TARGETS ${APP_NAME} DESTINATION ${LUNA_ROOT}/initrd/bin)
endfunction()
luna_app(init.c init)
luna_app(cat.c cat)
luna_app(edit.c edit)
luna_app(sh.c sh)
luna_app(date.c date)
luna_app(ls.c ls)