1
0
mirror of https://github.com/NevermindZZT/letter-shell.git synced 2025-01-21 10:02:54 +08:00
letter-shell/demo/x86-gcc/CmakeLists.txt
Letter 4522c026bb 修复 log工具问题
优化 x86 demo使用cmake构建
2021-05-22 21:50:35 +08:00

26 lines
888 B
Plaintext

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
)
target_include_directories(LetterShell PUBLIC
"${PROJECT_BINARY_DIR}"
../../src
../../extensions/fs_support
../../extensions/cpp_support
../../extensions/log
)
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -T shell.lds")