CMakeLists.txt 1.88 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
7
8
9
  ../client/ClientProxy.cpp 
  DiskReadThreadPool.cpp
  DiskReadTask.cpp
  DiskWriteTask.cpp
10
11
12
  DiskWriteThreadPool.cpp
  DriveCatalogue.cpp
  DriveCatalogueEntry.cpp
Daniele Kruse's avatar
Daniele Kruse committed
13
14
15
  DriveCatalogueSession.cpp
  DriveCatalogueLabelSession.cpp
  DriveCatalogueTransferSession.cpp
16
  DriveCatalogueCleanerSession.cpp
17
  TapeServerReporter.cpp
18
19
  LabelCmdAcceptHandler.cpp
  LabelCmdConnectionHandler.cpp
20
  LabelSession.cpp
21
  CleanerSession.cpp
22
  MigrationMemoryManager.cpp
23
24
  MigrationReportPacker.cpp 
  MigrationTaskInjector.cpp
25
  DataTransferSession.cpp
26
  ProcessForker.cpp
27
  ProcessForkerConnectionHandler.cpp
28
  ProcessForkerProxy.cpp
29
  ProcessForkerProxyDummy.cpp
30
  ProcessForkerProxySocket.cpp
31
  ProcessForkerUtils.cpp
32
33
34
35
  RecallMemoryManager.cpp
  RecallTaskInjector.cpp 
  RecallReportPacker.cpp
  TapeMessageHandler.cpp
36
  TapeDaemonMain.cpp
37
  TapeWriteSingleThread.cpp
38
  TapeWriteTask.cpp
39
  VdqmAcceptHandler.cpp
40
  VdqmConnectionHandler.cpp)
41

42
target_link_libraries(castorTapeServerDaemon castormessages castortapereactor)
43

44
45
46
47
48
49
50
51
add_library(castorTapeServerDaemonTestDummies
  ../client/ClientSimulator.cpp 
  ../../tpcp/TpcpCommand.cpp
  ../../tpcp/StreamOperators.cpp
  ../../tpcp/Helper.cpp
  ../../tpcp/TapeFseqRange.cpp)

add_executable(tapeserverd TapeDaemon.cpp)
52

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

71
72
73
74
install (TARGETS tapeserverd DESTINATION ${CASTOR_DEST_BIN_DIR})
CastorInstallAdmManPage (tapeserverd)
CastorInstallLogrotate (castor-tapeserver-server)
CastorInstallSysconfigExample (tapeserverd)
75
CastorInstallInitScript (tapeserverd)
76
CastorInstallUdevRule (99-tape.rules)