CMakeLists.txt 2.01 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
8
  CapabilityUtils.cpp
  CapabilityUtilsImpl.cpp
9
10
11
  DiskReadThreadPool.cpp
  DiskReadTask.cpp
  DiskWriteTask.cpp
12
13
14
  DiskWriteThreadPool.cpp
  DriveCatalogue.cpp
  DriveCatalogueEntry.cpp
Daniele Kruse's avatar
Daniele Kruse committed
15
16
17
  DriveCatalogueSession.cpp
  DriveCatalogueLabelSession.cpp
  DriveCatalogueTransferSession.cpp
18
19
  ../drive/Drive.cpp
  GlobalStatusReporter.cpp
20
21
  LabelCmdAcceptHandler.cpp
  LabelCmdConnectionHandler.cpp
22
  LabelSession.cpp
23
  MigrationMemoryManager.cpp
24
25
  MigrationReportPacker.cpp 
  MigrationTaskInjector.cpp
26
  DataTransferSession.cpp
27
28
29
30
31
  RecallMemoryManager.cpp
  RecallTaskInjector.cpp 
  RecallReportPacker.cpp
  SmartCap.cpp
  TapeMessageHandler.cpp
32
  TapeDaemonMain.cpp
33
  TapeWriteTask.cpp
34
  TaskWatchDog.cpp
35
  VdqmAcceptHandler.cpp
36
  VdqmConnectionHandler.cpp)
37

38
target_link_libraries(castorTapeServerDaemon castorMessages castortapereactor)
39

40
41
42
43
44
45
46
47
add_library(castorTapeServerDaemonTestDummies
  ../client/ClientSimulator.cpp 
  ../../tpcp/TpcpCommand.cpp
  ../../tpcp/StreamOperators.cpp
  ../../tpcp/Helper.cpp
  ../../tpcp/TapeFseqRange.cpp)

add_executable(tapeserverd TapeDaemon.cpp)
48

49
50
51
52
53
54
55
56
57
find_library (LIBCAP_LIB cap)
if (LIBCAP_LIB)
  message(STATUS "Found the libcap library")
  set (LIBCAPUNITTEST_SRC_FILES
    ../castor/tape/tapeserver/daemon/SmartCapTest.cpp)
else (LIBCAP_LIB)
  message(STATUS "Failed to find libcap library")
endif (LIBCAP_LIB)

58
target_link_libraries(tapeserverd
59
  castorTapeServerDaemon
60
61
62
63
64
65
66
  Exception
  SCSI
  System
  Utils
  File
  castorcommon
  castorclient
67
  castorlegacymsg
68
  castortapegatewayprotocol
69
  castortapereactor
Eric Cano's avatar
Eric Cano committed
70
  castorTapeServerThreading
71
  castortapeutils
72
  ${LIBCAP_LIB}
73
  ${ZLIB_LIBRARIES}
74
  castorMessages)
75

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