Luna/utils/CMakeLists.txt

38 lines
1.2 KiB
CMake
Raw Normal View History

function(luna_utility 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)
target_include_directories(${APP_NAME} PRIVATE ${LUNA_BASE}/usr/include)
target_link_libraries(${APP_NAME} PRIVATE os)
install(TARGETS ${APP_NAME} DESTINATION ${LUNA_BASE}/usr/bin)
endfunction()
luna_utility(env.cpp env)
luna_utility(su.cpp su)
luna_utility(cat.cpp cat)
luna_utility(date.cpp date)
luna_utility(edit.cpp edit)
luna_utility(ls.cpp ls)
luna_utility(chown.cpp chown)
luna_utility(chmod.cpp chmod)
luna_utility(mkdir.cpp mkdir)
luna_utility(rm.cpp rm)
luna_utility(stat.cpp stat)
luna_utility(uname.cpp uname)
luna_utility(base64.cpp base64)
luna_utility(login.cpp login)
luna_utility(mount.cpp mount)
luna_utility(umount.cpp umount)
luna_utility(ps.cpp ps)
luna_utility(time.cpp time)
luna_utility(ln.cpp ln)
luna_utility(mktemp.cpp mktemp)
luna_utility(sysfuzz.cpp sysfuzz)
luna_utility(cp.cpp cp)
luna_utility(kill.cpp kill)
luna_utility(touch.cpp touch)
luna_utility(free.cpp free)
luna_utility(sha256sum.cpp sha256sum)
luna_utility(arch.cpp arch)
2024-09-07 15:40:39 +00:00
luna_utility(logout.cpp logout)