CMakeLists.txt 1.99 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
  CatalogueConfig.cpp
19
  TapeServerReporter.cpp
20
21
  LabelCmdAcceptHandler.cpp
  LabelCmdConnectionHandler.cpp
22
  LabelSession.cpp
23
  CleanerSession.cpp
24
  MigrationMemoryManager.cpp
25
26
  MigrationReportPacker.cpp 
  MigrationTaskInjector.cpp
27
  DataTransferSession.cpp
28
  ProcessForker.cpp
29
  ProcessForkerConfig.cpp
30
  ProcessForkerConnectionHandler.cpp
31
  ProcessForkerProxy.cpp
32
  ProcessForkerProxyDummy.cpp
33
  ProcessForkerProxySocket.cpp
34
  ProcessForkerUtils.cpp
35
36
37
  RecallMemoryManager.cpp
  RecallTaskInjector.cpp 
  RecallReportPacker.cpp
38
  Session.cpp
39
  TapeMessageHandler.cpp
Steven Murray's avatar
Steven Murray committed
40
  TapeDaemonConfig.cpp
41
  TapeDaemonMain.cpp
42
  TapeReadSingleThread.cpp
43
  TapeWriteSingleThread.cpp
44
  TapeWriteTask.cpp
45
  VdqmAcceptHandler.cpp
46
  VdqmConnectionHandler.cpp)
47

48
target_link_libraries(castorTapeServerDaemon castormessages castortapereactor)
49

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

add_executable(tapeserverd TapeDaemon.cpp)
58

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

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