-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
48 lines (34 loc) · 1.08 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)
# set the project name
project(FTPServer C CXX)
# add the executable
add_executable(
FTPServer src/main.cpp
src/Network/Server.h
src/Network/Server.cpp
src/Network/Response.cpp
src/Network/Response.h
src/Network/Client.h
src/Network/Client.cpp
src/Network/StatusCodes.h
src/Command/Command.h
src/Command/Command.cpp
src/Filesystem/Executor.h
src/Filesystem/Executor.cpp
src/Logger.h
src/Logger.cpp
src/Network/DataChannel.cpp
src/Network/DataChannel.h
src/Exception/LostConnection.h
src/Exception/UndefinedCommand.h
src/Exception/NotLogged.h
src/Exception/NoDataConnection.h
src/Exception/AlreadyDeclared.h
src/Exception/LoggedSuccessfully.h)
set_property(TARGET FTPServer PROPERTY CXX_STANDARD 14)
# including pthread.h library
SET(THREADS_PREFER_PTHREAD_FLAG TRUE)
FIND_PACKAGE(Threads REQUIRED)
TARGET_LINK_LIBRARIES(FTPServer Threads::Threads)
TARGET_COMPILE_OPTIONS(FTPServer INTERFACE Threads::Threads)
target_link_libraries(FTPServer stdc++fs)