Luna/apps/CMakeLists.txt

26 lines
725 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})
target_compile_options(${APP_NAME} PRIVATE -Os ${COMMON_FLAGS} -Wno-write-strings)
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()
2023-03-29 15:56:56 +00:00
luna_app(init.cpp init)
luna_app(env.cpp env)
2023-04-08 10:09:43 +00:00
luna_app(sh.cpp sh)
target_link_libraries(sh PRIVATE os)
2023-03-29 20:10:51 +00:00
luna_app(cat.cpp cat)
target_link_libraries(cat PRIVATE os)
2023-03-29 15:56:56 +00:00
luna_app(date.cpp date)
target_link_libraries(date PRIVATE os)
luna_app(edit.cpp edit)
target_link_libraries(edit PRIVATE os)
2023-03-29 15:56:56 +00:00
luna_app(ls.cpp ls)
target_link_libraries(ls PRIVATE os)