-
Notifications
You must be signed in to change notification settings - Fork 18
/
CMakeLists.txt
64 lines (58 loc) · 2.2 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
cmake_minimum_required(VERSION 3.6)
project(p2psc)
enable_testing()
set(CMAKE_CXX_FLAGS
"${CMAKE_CXX_FLAGS} -Wall -Werror -Wno-unused-variable -Wno-sign-compare -Wno-missing-braces -Wno-unused-function -std=c++14")
add_library(p2psc
include/p2psc.h
include/p2psc/connection.h
include/p2psc/connection_exception.h
include/p2psc/crypto/crypto_exception.h
include/p2psc/crypto/pki.h
include/p2psc/error.h
include/p2psc/key/keypair.h
include/p2psc/key/public_key.h
include/p2psc/log.h
include/p2psc/mediator.h
include/p2psc/message/message.h
include/p2psc/message/advertise.h
include/p2psc/message/advertise_abort.h
include/p2psc/message/advertise_challenge.h
include/p2psc/message/advertise_response.h
include/p2psc/message/advertise_retry.h
include/p2psc/message/anonymous_message_format.h
include/p2psc/message/message_decoder.h
include/p2psc/message/message_exception.h
include/p2psc/message/message_format.h
include/p2psc/message/message_util.h
include/p2psc/message/peer_acknowledgement.h
include/p2psc/message/peer_challenge.h
include/p2psc/message/peer_challenge_response.h
include/p2psc/message/peer_disconnect.h
include/p2psc/message/peer_identification.h
include/p2psc/message/peer_response.h
include/p2psc/message/types.h
include/p2psc/peer.h
include/p2psc/punched_peer.h
include/p2psc/socket_creator.h
include/p2psc/socket/socket.h
include/p2psc/socket/socket_address.h
include/p2psc/socket/socket_exception.h
include/p2psc/version.h
src/connection.cpp
src/crypto/rsa.cpp
src/key/keypair.cpp
src/key/public_key.cpp
src/mediator_connection.cpp
src/socket/local_listening_socket.cpp
src/socket/socket.cpp)
target_include_directories(p2psc
PUBLIC
include
PRIVATE
src)
add_subdirectory(test)
add_subdirectory(integration)
add_subdirectory(vendor/spotify-json)
add_subdirectory(vendor/base64)
target_link_libraries(p2psc spotify-json boost_system crypto pthread)