Luna/shell/CMakeLists.txt
apio 7a4d3ba495
All checks were successful
continuous-integration/drone/push Build is passing
sh: Add a few more shell builtins
2023-07-21 21:06:10 +02:00

16 lines
429 B
CMake

set(SOURCES
main.cpp
sh.h
builtin/cd.cpp
builtin/exit.cpp
builtin/set.cpp
builtin/unset.cpp
)
add_executable(sh ${SOURCES})
target_compile_options(sh PRIVATE -Os ${COMMON_FLAGS} -Wno-write-strings)
add_dependencies(sh libc)
target_include_directories(sh PRIVATE ${LUNA_BASE}/usr/include ${CMAKE_CURRENT_LIST_DIR})
target_link_libraries(sh PRIVATE os)
install(TARGETS sh DESTINATION ${LUNA_BASE}/usr/bin)