-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
66 lines (62 loc) · 2.3 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
cmake_minimum_required(VERSION 2.8)
project(SocksTunnelLocal)
#add -DNDEBUG to enable release version
#add -DFOREGROUND_START to start in foreground, mmm...use for debug
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(LINKLIB ev event pthread crypto z log4cpp)
set(SOURCE_FILES
src/CommonLib/Atomic.h
src/CommonLib/Json.cpp
src/CommonLib/Json.h
src/CommonLib/Logger.h
src/CommonLib/Logger.cpp
src/CommonLib/Mutex.h
src/CommonLib/Mutex.cpp
src/CommonLib/NoCopyable.h
src/CommonLib/SharedPtr.h
src/CommonLib/Singleton.h
src/CommonLib/StringUtils.cpp
src/CommonLib/StringUtils.h
src/CommonLib/Timestamp.cpp
src/CommonLib/Timestamp.h
src/CommonLib/Exception/Exception.h
src/CommonLib/Exception/FileNotFoundException.h
src/CommonLib/Exception/InitFailedException.h
src/CommonLib/Exception/KeyNotFoundException.h
src/CommonLib/Exception/MultiSetException.h
src/CommonLib/Exception/OutOfRangeException.h
src/CommonLib/Exception/ParseException.h
src/CommonLib/Exception/StringBaseException.h
src/CommonLib/Exception/UnKnowKeyException.h
src/SocksTunnelLocal.cpp src/SocksTunnelLocal.h
src/CommonLib/Reader.cpp
src/CommonLib/Reader.h
src/Common/MsgResolver.cpp
src/Common/MsgResolver.h
src/SocksTunnelServer.h
src/SocksTunnelServer.cpp
src/Common/ServerCommon.cpp
src/Common/ServerCommon.h
src/Crypto/Crypto.h
src/Crypto/Rc4.cpp
src/Crypto/Rc4.h
src/Crypto/CryptoHelper.cpp
src/Crypto/CryptoHelper.h
src/Utils/BufferReader.cpp
src/Utils/BufferReader.h
src/Utils/SettingUtils.cpp
src/Utils/SettingUtils.h
src/Utils/BufferWriter.cpp
src/Utils/BufferWriter.h
src/Utils/RandomUtils.cpp
src/Utils/RandomUtils.h
src/Crypto/Xor.cpp
src/Crypto/Xor.h
src/Crypto/Chacha20.cpp
src/Crypto/Chacha20.h
)
link_directories("/usr/local/lib")
add_executable(SocksTunnelServer ${SOURCE_FILES} src/server.cpp)
target_link_libraries(SocksTunnelServer ${LINKLIB})
add_executable(SocksTunnelLocal ${SOURCE_FILES} src/client.cpp)
target_link_libraries(SocksTunnelLocal ${LINKLIB})