CMakeLists.txt 1.95 KB
Newer Older
Eric Cano's avatar
Eric Cano committed
1
2
find_package( ZLIB REQUIRED )

3
add_library(castorTapeServerDaemon 
4
5
  AdminAcceptHandler.cpp
  AdminConnectionHandler.cpp
6
  ../client/ClientProxy.cpp 
7
  DataTransferConfig.cpp
8
9
10
  DiskReadThreadPool.cpp
  DiskReadTask.cpp
  DiskWriteTask.cpp
11
  DiskWriteThreadPool.cpp
12
13
14
15
16
17
  Catalogue.cpp
  CatalogueDrive.cpp
  CatalogueSession.cpp
  CatalogueLabelSession.cpp
  CatalogueTransferSession.cpp
  CatalogueCleanerSession.cpp
18
  TapeServerReporter.cpp
19
20
  LabelCmdAcceptHandler.cpp
  LabelCmdConnectionHandler.cpp
21
  LabelSession.cpp
22
  CleanerSession.cpp
23
  MigrationMemoryManager.cpp
24
25
  MigrationReportPacker.cpp 
  MigrationTaskInjector.cpp
26
  DataTransferSession.cpp
27
  ProcessForker.cpp
28
  ProcessForkerConnectionHandler.cpp
29
  ProcessForkerOneTimeConfig.cpp
30
  ProcessForkerProxy.cpp
31
  ProcessForkerProxyDummy.cpp
32
  ProcessForkerProxySocket.cpp
33
  ProcessForkerUtils.cpp
34
35
36
  RecallMemoryManager.cpp
  RecallTaskInjector.cpp 
  RecallReportPacker.cpp
37
  Session.cpp
38
  TapeMessageHandler.cpp
39
  TapeDaemonMain.cpp
40
  TapeReadSingleThread.cpp
41
  TapeWriteSingleThread.cpp
42
  TapeWriteTask.cpp
43
  VdqmAcceptHandler.cpp
44
  VdqmConnectionHandler.cpp)
45

46
target_link_libraries(castorTapeServerDaemon castormessages castortapereactor)
47

48
49
50
51
52
53
54
55
add_library(castorTapeServerDaemonTestDummies
  ../client/ClientSimulator.cpp 
  ../../tpcp/TpcpCommand.cpp
  ../../tpcp/StreamOperators.cpp
  ../../tpcp/Helper.cpp
  ../../tpcp/TapeFseqRange.cpp)

add_executable(tapeserverd TapeDaemon.cpp)
56

57
target_link_libraries(tapeserverd
58
  castorTapeServerDaemon
59
60
61
62
  SCSI
  System
  Utils
  File
63
  TapeDrive
64
65
  castorcommon
  castorclient
66
  castorlegacymsg
67
  castorserver
68
  castortapegatewayprotocol
69
  castortapereactor
70
  castortapeutils
71
  ${LIBCAP_LIB}
72
  ${ZLIB_LIBRARIES}
73
  castormessages)
74

75
76
77
78
install (TARGETS tapeserverd DESTINATION ${CASTOR_DEST_BIN_DIR})
CastorInstallAdmManPage (tapeserverd)
CastorInstallLogrotate (castor-tapeserver-server)
CastorInstallSysconfigExample (tapeserverd)
79
CastorInstallInitScript (tapeserverd)
80
CastorInstallUdevRule (99-tape.rules)