21 lines
511 B
CMake
21 lines
511 B
CMake
file(GLOB HEADERS *.h)
|
|
|
|
set(SOURCES
|
|
${HEADERS}
|
|
main.cpp
|
|
Prompt.cpp
|
|
Command.cpp
|
|
builtin/cd.cpp
|
|
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)
|