Luna/shell/CMakeLists.txt

21 lines
511 B
CMake
Raw Normal View History

file(GLOB HEADERS *.h)
set(SOURCES
${HEADERS}
main.cpp
Prompt.cpp
Command.cpp
builtin/cd.cpp
2023-07-21 19:06:10 +00:00
builtin/exit.cpp
builtin/set.cpp
builtin/unset.cpp
builtin/echo.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)