-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
61 lines (50 loc) · 1.97 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
cmake_minimum_required(VERSION 3.23)
project(rgaas C)
set(CMAKE_C_STANDARD 11)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
SET (CMAKE_C_COMPILER "/usr/bin/clang")
SET (CMAKE_CXX_COMPILER "/usr/bin/clang++")
file(MAKE_DIRECTORY build)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/build)
add_executable(rgaas-server
rgaas/server/main.c
modules/logger/logger.c
modules/logger/logger.h
modules/signal_handler/signal_handler.c
modules/signal_handler/signal_handler.h
modules/argparser/argparser.c
modules/argparser/argparser.h
modules/tcp_handler/tcp_handler.c
modules/tcp_handler/tcp_handler.h)
add_executable(rgaas-client
rgaas/client/main.c
modules/logger/logger.c
modules/logger/logger.h
modules/signal_handler/signal_handler.c
modules/signal_handler/signal_handler.h
modules/argparser/argparser.c
modules/argparser/argparser.h
modules/tcp_handler/tcp_handler.c
modules/tcp_handler/tcp_handler.h)
add_executable(unit-test
test/unit_test/cmocka/src/cmocka.c
test/unit_test/cmocka/include/cmocka.h
test/unit_test/cmocka/include/cmocka_pbc.h
test/unit_test/cmocka/include/cmocka_private.h
test/unit_test/cmocka/include/cmockery/cmockery.h
test/unit_test/cmocka/include/cmockery/pbc.h
test/unit_test/unit_test.c
test/unit_test/argparser_unit_test.c
test/unit_test/argparser_unit_test.h
test/unit_test/logger_unit_test.c
test/unit_test/logger_unit_test.h
test/unit_test/tcp_handler_unit_test.c
test/unit_test/tcp_handler_unit_test.h
modules/argparser/argparser.c
modules/argparser/argparser.h
modules/logger/logger.c
modules/logger/logger.h
modules/tcp_handler/tcp_handler.c
modules/tcp_handler/tcp_handler.h
modules/signal_handler/signal_handler.c
modules/signal_handler/signal_handler.h)