forked from Bananymous/banan-os
Userspace: implement basic stat
I tried to format the output pretty much how linux does, except for uid and git -> name resolution which is not implemented
This commit is contained in:
16
userspace/stat/CMakeLists.txt
Normal file
16
userspace/stat/CMakeLists.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
cmake_minimum_required(VERSION 3.26)
|
||||
|
||||
project(stat CXX)
|
||||
|
||||
set(SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
||||
add_executable(stat ${SOURCES})
|
||||
target_compile_options(stat PUBLIC -O2 -g)
|
||||
target_link_libraries(stat PUBLIC libc ban)
|
||||
|
||||
add_custom_target(stat-install
|
||||
COMMAND cp ${CMAKE_CURRENT_BINARY_DIR}/stat ${BANAN_BIN}/
|
||||
DEPENDS stat
|
||||
)
|
||||
Reference in New Issue
Block a user