-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
48 lines (41 loc) · 1.05 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
cmake_minimum_required(VERSION 3.10)
# Project name
project(MyProject)
# Specify the C++ standard
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
# Include directories
include_directories(
${PROJECT_SOURCE_DIR}/cil
${PROJECT_SOURCE_DIR}/head
${PROJECT_SOURCE_DIR}/redis
${PROJECT_SOURCE_DIR}/sen_rec
${PROJECT_SOURCE_DIR}/ser
${PROJECT_SOURCE_DIR}/sql
)
# Add the executable for cli
add_executable(cli
${PROJECT_SOURCE_DIR}/cli/cli.cpp
${PROJECT_SOURCE_DIR}/cli/menu.cpp
${PROJECT_SOURCE_DIR}/cli/User.cpp
${PROJECT_SOURCE_DIR}/cli/user_work.cpp
${PROJECT_SOURCE_DIR}/cli/prich.cpp
${PROJECT_SOURCE_DIR}/cli/file.cpp
)
# Link libraries for cli
target_link_libraries(cli
hiredis
ncurses
)
# Add the executable for server
add_executable(server
${PROJECT_SOURCE_DIR}/redis/redis.cpp
${PROJECT_SOURCE_DIR}/ser/ser.cpp
${PROJECT_SOURCE_DIR}/ser/User.cpp
${PROJECT_SOURCE_DIR}/ser/message.cpp
)
# Link libraries for server
target_link_libraries(server
hiredis
mysqlclient
)