CMakeLists.txt 1.86 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
29
  ProcessForkerProxy.cpp
  ProcessForkerProxySocket.cpp
30
  ProcessForkerUtils.cpp
31
32
33
34
  RecallMemoryManager.cpp
  RecallTaskInjector.cpp 
  RecallReportPacker.cpp
  TapeMessageHandler.cpp
35
  TapeDaemonMain.cpp
36
  TapeWriteSingleThread.cpp
37
  TapeWriteTask.cpp
38
  VdqmAcceptHandler.cpp
39
  VdqmConnectionHandler.cpp)
40

41
target_link_libraries(castorTapeServerDaemon castormessages castortapereactor)
42

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

add_executable(tapeserverd TapeDaemon.cpp)
51

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

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