-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
27 lines (19 loc) · 5.54 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
cmake_minimum_required(VERSION 3.3)
project(broker_client)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
set(SOURCE_FILES main.cpp client/Client.cpp client/Client.h flowroute/FlowRoute.cpp flowroute/FlowRoute.h flowroute/fields/Name.cpp flowroute/fields/Name.h flowroute/fields/AbstractAddress.cpp flowroute/fields/AbstractAddress.h flowroute/fields/SourceAddress.cpp flowroute/fields/SourceAddress.h flowroute/fields/DestinationAddress.cpp flowroute/fields/DestinationAddress.h flowroute/fields/types/AbstractFlowRouteField.cpp flowroute/fields/types/AbstractFlowRouteField.h flowroute/fields/Protocol.cpp flowroute/fields/Protocol.h flowroute/fields/types/AbstractFlowRouteAction.cpp flowroute/fields/types/AbstractFlowRouteAction.h protocol/BrokerRequest.cpp protocol/BrokerRequest.h protocol/BrokerReply.cpp protocol/BrokerReply.h flowroute/fields/DISCARD.cpp flowroute/fields/DISCARD.h flowroute/exceptions/FlowRouteException.cpp flowroute/exceptions/FlowRouteException.h flowroute/fields/RATELIMIT.cpp flowroute/fields/RATELIMIT.h protocol/BrokerProtocol.cpp protocol/BrokerProtocol.h client/BrokerClient.cpp client/BrokerClient.h protocol/parser/BrokerReplyParser.cpp protocol/parser/BrokerReplyParser.h protocol/exceptions/BrokerReplyParseErrorException.cpp protocol/exceptions/BrokerReplyParseErrorException.h protocol/evaluator/BrokerReplyEvaluator.cpp protocol/evaluator/BrokerReplyEvaluator.h protocol/replies/ReplyCode200.cpp protocol/replies/ReplyCode200.h protocol/replies/type/ReplyCode.cpp protocol/replies/type/ReplyCode.h protocol/replies/UnknownReplyCode.cpp protocol/replies/UnknownReplyCode.h protocol/exceptions/BrokerReplyEvaluationErrorException.cpp protocol/exceptions/BrokerReplyEvaluationErrorException.h protocol/replies/ReplyCode400.cpp protocol/replies/ReplyCode400.h protocol/replies/ReplyCode403.cpp protocol/replies/ReplyCode403.h cmdline/BrokerCmdInterface.cpp cmdline/BrokerCmdInterface.h cmdline/argvparser.cpp cmdline/argvparser.h cmdline/exceptions/BrokerCmdInterfaceValueErrorException.cpp cmdline/exceptions/BrokerCmdInterfaceValueErrorException.h flowroute/fields/Expires.cpp flowroute/fields/Expires.h protocol/security/MessageAuthenticationCode.cpp protocol/security/MessageAuthenticationCode.h protocol/security/hash-library/sha256.h protocol/security/hash-library/sha256.cpp protocol/security/hash-library/sha256.h protocol/security/hash-library/sha256.h protocol/security/hash-library/hmac.h protocol/security/exceptions/HMACVerificationFailedErrorException.cpp protocol/security/exceptions/HMACVerificationFailedErrorException.h protocol/security/BrokerSecurityModule.cpp protocol/security/BrokerSecurityModule.h protocol/security/exceptions/DateValidationFailedErrorException.cpp protocol/security/exceptions/DateValidationFailedErrorException.h protocol/security/BrokerDate.cpp protocol/security/BrokerDate.h flowroute/fields/Port.cpp flowroute/fields/Port.h flowroute/fields/AbstractPort.cpp flowroute/fields/AbstractPort.h flowroute/fields/DestinationPort.cpp flowroute/fields/DestinationPort.h flowroute/fields/SourcePort.cpp flowroute/fields/SourcePort.h flowroute/fields/expressions/NumberRange.cpp flowroute/fields/expressions/NumberRange.h helper/stringHelper.h flowroute/fields/expressions/PortExpression.cpp flowroute/fields/expressions/PortExpression.h helper/stringHelper.cpp helper/numHelper.h helper/numHelper.cpp protocol/replies/ReplyCode401.cpp protocol/replies/ReplyCode401.h protocol/replies/ReplyCode500.cpp protocol/replies/ReplyCode500.h protocol/replies/ReplyCode501.cpp protocol/replies/ReplyCode501.h protocol/replies/ReplyCode422.cpp protocol/replies/ReplyCode422.h protocol/replies/ReplyCode408.cpp protocol/replies/ReplyCode408.h protocol/replies/ReplyCode404.cpp protocol/replies/ReplyCode404.h flowroute/fields/WITHDRAW.cpp flowroute/fields/WITHDRAW.h flowroute/fields/PacketLength.cpp flowroute/fields/PacketLength.h flowroute/fields/expressions/PacketLengthExpression.cpp flowroute/fields/expressions/PacketLengthExpression.h flowroute/fields/expressions/DSCPExpression.cpp flowroute/fields/expressions/DSCPExpression.h flowroute/fields/DSCP.cpp flowroute/fields/DSCP.h flowroute/fields/AbstractSetOfThings.cpp flowroute/fields/AbstractSetOfThings.h flowroute/fields/Fragment.cpp flowroute/fields/Fragment.h flowroute/fields/TCPFlags.cpp flowroute/fields/TCPFlags.h flowroute/fields/ICMPType.cpp flowroute/fields/ICMPType.h flowroute/fields/ICMPCode.cpp flowroute/fields/ICMPCode.h client/exceptions/ClientErrorException.cpp client/exceptions/ClientErrorException.h protocol/exceptions/BrokerRequestFailedException.cpp protocol/exceptions/BrokerRequestFailedException.h version.h)
# Uncomment lines below for the client to be statically linked
#SET(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
#SET(BUILD_SHARED_LIBRARIES OFF)
#SET(CMAKE_EXE_LINKER_FLAGS "-static")
add_executable(broker_client ${SOURCE_FILES})
install(TARGETS broker_client DESTINATION bin)
set(CPACK_GENERATOR "DEB;TGZ;STGZ")
set(CPACK_PACKAGE_VERSION_MAJOR "0")
set(CPACK_PACKAGE_VERSION_MINOR "1")
set(CPACK_PACKAGE_VERSION_PATCH "0")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Reference implementation of a Flow Specification Broker Client")
set(CPACK_PACKAGE_DESCRIPTION "The Broker client is the counterpart of the Broker Server and aims at being a simple tool for system administrators to allow them to request certain FlowSpec to be installed for protection. The client tool is intended to be used with our Broker Server and implements all features supported by the Broker Protocol.")
set(CPACK_PACKAGE_CONTACT "Markus Jungbluth <[email protected]>")
set (CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
INCLUDE(CPack)