-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
76 lines (59 loc) · 1.95 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
cmake_minimum_required(VERSION 3.27)
project(minishell)
# Compiler settings
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_FLAGS_DEBUG "-g -D DEBUG=0")
set(CMAKE_C_FLAGS_RELEASE "-Wall -Wextra -Werror")
# Include directories
include_directories(include)
# Source files
set(SRCS
src/main.c
src/terminal/input_utils.c
src/terminal/terminal.c
src/terminal/terminal_action.c
src/terminal/terminal_arrow.c
src/terminal/terminal_cursor.c
src/terminal/terminal_info.c
src/terminal/terminal_prompt.c
src/terminal/terminal_utils.c
src/parsing/parsing_args.c
src/parsing/ast_management.c
src/parsing/parsing.c
src/parsing/parsing_bonus.c
src/parsing/tokenizer/tokenizer.c
src/memory/memory_alloc.c
src/memory/memory_free.c
src/history/history_file.c
src/history/history_management.c
src/history/history_navigation.c
src/execution/execution.c
src/environment/env_utils.c
src/debug/debug_execution.c
src/debug/debug_history.c
src/debug/debug_parsing.c
src/config/term_config.c
src/commands/command_maker.c
src/commands/custom/cd.c
src/commands/custom/echo.c
src/commands/custom/env.c
src/commands/custom/exit.c
src/commands/custom/export.c
src/commands/custom/history.c
src/commands/custom/pwd.c
src/commands/custom/unset.c
src/terminal/terminal_action.c
src/terminal/terminal_action.c
src/terminal/terminal_action.c
)
# Object files directory
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/obj)
# External libraries
set(LIBFT_DIR ${CMAKE_SOURCE_DIR}/libft)
add_subdirectory(${LIBFT_DIR})
include_directories(${LIBFT_DIR}/include)
# Executable
add_executable(${PROJECT_NAME} ${SRCS}
src/terminal/terminal_action.c)
# Link libraries (libft)
target_link_libraries(${PROJECT_NAME} PRIVATE libft)