2021-05-22 21:50:35 +08:00
|
|
|
cmake_minimum_required(VERSION 3.0.0)
|
|
|
|
project(LetterShell VERSION 0.1.0)
|
|
|
|
|
|
|
|
add_executable(LetterShell
|
|
|
|
main.c
|
|
|
|
shell_port.c
|
|
|
|
shell_cpp.cpp
|
|
|
|
../../src/shell.c
|
|
|
|
../../src/shell_companion.c
|
|
|
|
../../src/shell_ext.c
|
|
|
|
../../extensions/fs_support/shell_fs.c
|
|
|
|
../../extensions/log/log.c
|
2021-05-31 22:39:11 +08:00
|
|
|
../../extensions/shell_enhance/shell_passthrough.c
|
2021-05-22 21:50:35 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(LetterShell PUBLIC
|
|
|
|
"${PROJECT_BINARY_DIR}"
|
|
|
|
../../src
|
|
|
|
../../extensions/fs_support
|
|
|
|
../../extensions/cpp_support
|
|
|
|
../../extensions/log
|
2021-05-31 22:39:11 +08:00
|
|
|
../../extensions/shell_enhance
|
2021-05-22 21:50:35 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
|
|
|
|
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
|
|
|
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -T shell.lds")
|