CMakeLists.txt 621 Bytes
Newer Older
1
2
3
4
5
find_package(Protobuf)

file(GLOB ProtoFiles "${CMAKE_CURRENT_SOURCE_DIR}/*.proto")
PROTOBUF_GENERATE_CPP(ProtoSources ProtoHeaders ${ProtoFiles})

6
add_library(castormessages SHARED
7
  ${ProtoSources}
8
  Constants.cpp
9
  Frame.cpp
10
  messages.cpp
11
  SmartZmqContext.cpp
12
13
14
15
16
17
  TapeserverProxy.cpp
  TapeserverProxyDummy.cpp
  TapeserverProxyDummyFactory.cpp
  TapeserverProxyFactory.cpp
  TapeserverProxyZmq.cpp
  TapeserverProxyZmqFactory.cpp
18
19
20
  ZmqMsg.cpp
  ZmqSocket.cpp
  ZmqSocketMT.cpp
21
  ZmqSocketST.cpp
22
23
)

24
target_link_libraries(castormessages protobuf ssl)
25
install (TARGETS castormessages DESTINATION ${CASTOR_DEST_LIB_DIR})