-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
57 lines (51 loc) · 1.83 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
cmake_minimum_required(VERSION 3.15)
project(SocketServer)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
find_package(GTest REQUIRED)
find_package(uuid REQUIRED)
include_directories(${GTEST_INCLUDE_DIRS})
add_executable(SocketServer
main.cpp
app/Server/Server.cpp
app/Server/Server.h
lib/SocketManager/SocketManager.cpp
lib/SocketManager/SocketManager.h
lib/ConfigManager/ConfigManager.cpp
lib/ConfigManager/ConfigManager.h
lib/HashTable/HashTable.cpp
lib/HashTable/HashTable.h
lib/LinkList/LinkList.cpp
lib/LinkList/LinkList.h main.h
)
add_executable(RunTests
test.cpp
app/Server/Server.cpp
app/Server/Server.h
lib/SocketManager/SocketManager.cpp
lib/SocketManager/SocketManager.h
lib/ConfigManager/ConfigManager.cpp
lib/ConfigManager/ConfigManager.h
lib/HashTable/HashTable.cpp
lib/HashTable/HashTable.h
lib/LinkList/LinkList.cpp
lib/LinkList/LinkList.h main.h
)
add_executable(ExecuteCommand
run-command.cpp
app/Server/Server.cpp
app/Server/Server.h
lib/SocketManager/SocketManager.cpp
lib/SocketManager/SocketManager.h
lib/ConfigManager/ConfigManager.cpp
lib/ConfigManager/ConfigManager.h
lib/HashTable/HashTable.cpp
lib/HashTable/HashTable.h
lib/LinkList/LinkList.cpp
lib/LinkList/LinkList.h main.h
app/RunCommand/RunCommand.cpp app/RunCommand/RunCommand.h)
target_link_libraries(ExecuteCommand uuid mysqlcppconn)
target_link_libraries(RunTests uuid mysqlcppconn)
target_link_libraries(SocketServer uuid mysqlcppconn)
target_link_libraries(RunTests ${GTEST_LIBRARIES} pthread)
SET(CMAKE_CXX_FLAGS "-pthread --coverage -luuid")