-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
118 lines (89 loc) · 3.32 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
cmake_minimum_required(VERSION 3.24)
project(OSaSP_LABS C)
set(CMAKE_C_STANDARD 11)
add_compile_options(-W -Wall -Wno-unused-parameter -Wno-unused-variable -std=c11 -pedantic)
add_executable(LAB_1 LAB_1/main.c color_print.h)
add_executable(LAB_2 LAB_2/main.c LAB_2/func.c LAB_2/func.h color_print.h keyboard_input.h)
add_executable(LAB_2_Child LAB_2/child/main.c color_print.h)
add_executable(LAB_3_Parent
LAB_3/src/protocol.h
LAB_3/src/parent/main.c
LAB_3/src/parent/helper.h
LAB_3/src/parent/helper.c)
add_executable(LAB_3_Child
LAB_3/src/protocol.h
LAB_3/src/child/main.c
LAB_3/src/child/helper.h
LAB_3/src/child/helper.c)
add_executable(LAB_4
LAB_4/src/main.c
LAB_4/src/init_and_exit.h
LAB_4/src/init_and_exit.c
LAB_4/src/producer.h
LAB_4/src/producer.c
LAB_4/src/ipc.h
LAB_4/src/ipc.c
LAB_4/src/consumer.h
LAB_4/src/consumer.c)
add_executable(LAB_5
LAB_5/src/main.c
LAB_5/src/init_and_exit.h
LAB_5/src/init_and_exit.c
LAB_5/src/producer.h
LAB_5/src/producer.c
LAB_5/src/ipc.h
LAB_5/src/ipc.c
LAB_5/src/consumer.h
LAB_5/src/consumer.c)
add_executable(LAB_6_Generator
LAB_6/src/generator/main.c)
add_executable(LAB_6_Printer
LAB_6/src/printer/main.c)
add_executable(LAB_6_Sort
LAB_6/src/sort_index/sort_index.c
LAB_6/src/sort_index/sort_index.h LAB_6/src/sort_index/thread.c LAB_6/src/sort_index/thread.h LAB_6/src/sort_index/utils.h)
add_executable(LAB_7_P1 LAB_7/p1/src/main.c LAB_7/p1/src/message/message.h LAB_7/p1/src/message/message.c LAB_7/p1/src/consumer/consumer.c LAB_7/p1/src/consumer/consumer.h LAB_7/p1/src/producer/producer.c LAB_7/p1/src/producer/producer.h)
add_executable(LAB_7_P2 LAB_7/p2/src/main.c)
add_executable(LAB_7_P2_2 LAB_7/p2/src/main.c)
add_executable(LAB_8_Server
LAB_8/src/server/main.c
LAB_8/src/server/cmd/cmd.h
LAB_8/src/server/cmd/ack.h
LAB_8/src/server/cmd/parser.h
LAB_8/src/server/cmd/invoker.h LAB_8/src/server/cmd/echo.h LAB_8/src/server/cmd/fs.h LAB_8/src/server/cmd/info.h LAB_8/src/server/cmd/command.h LAB_8/src/server/cmd/quit.h LAB_8/src/protocol/protocol.h LAB_8/src/server/discovery_server.h)
add_executable(LAB_8_Client
LAB_8/src/client/main.c
LAB_8/src/protocol/protocol.h LAB_8/src/client/discovery_client.h)
target_include_directories(LAB_2 PRIVATE
.)
target_include_directories(LAB_2_Child PRIVATE
LAB_2/child
.)
target_include_directories(LAB_3_Parent PRIVATE
LAB_3/src
.)
target_include_directories(LAB_3_Child PRIVATE
LAB_3/src/child
.)
target_include_directories(LAB_4 PRIVATE
.)
target_include_directories(LAB_5 PRIVATE
.)
target_include_directories(LAB_6_Generator PRIVATE
.)
target_include_directories(LAB_6_Printer PRIVATE
.)
target_include_directories(LAB_6_Sort PRIVATE
.)
target_include_directories(LAB_7_P1 PRIVATE
.)
target_include_directories(LAB_7_P2 PRIVATE
.)
target_include_directories(LAB_7_P2_2 PRIVATE
.)
target_include_directories(LAB_8_Server PRIVATE
LAB_8/src/protocol
.)
target_include_directories(LAB_8_Client PRIVATE
LAB_8/src/protocol
.)