CMakeLists.txt 3.02 KB
Newer Older
Eric Cano's avatar
Eric Cano committed
1
2
cmake_minimum_required (VERSION 2.6)

3
set (COMMON_LIB_SRC_FILES
4
5
6
  dataStructures/AdminHost.cpp
  dataStructures/AdminUser.cpp
  dataStructures/ArchiveFile.cpp
7
  dataStructures/ArchiveFileSummary.cpp
8
9
10
11
12
13
  dataStructures/ArchiveJob.cpp
  dataStructures/ArchiveMount.cpp
  dataStructures/ArchiveRequest.cpp
  dataStructures/ArchiveRoute.cpp
  dataStructures/CancelRetrieveRequest.cpp
  dataStructures/Dedication.cpp
14
  dataStructures/DedicationType.cpp
15
16
  dataStructures/DeleteArchiveRequest.cpp
  dataStructures/DRData.cpp
17
  dataStructures/DriveState.cpp
18
  dataStructures/DriveStatus.cpp
19
20
  dataStructures/EntryLog.cpp
  dataStructures/ListStorageClassRequest.cpp
21
  dataStructures/MountType.cpp
22
23
  dataStructures/ReadTestResult.cpp
  dataStructures/RepackInfo.cpp
24
  dataStructures/RepackType.cpp
25
26
27
28
29
30
31
32
33
34
  dataStructures/Requester.cpp
  dataStructures/RetrieveJob.cpp
  dataStructures/RetrieveMount.cpp
  dataStructures/RetrieveRequest.cpp
  dataStructures/SecurityIdentity.cpp
  dataStructures/StorageClass.cpp
  dataStructures/Tape.cpp
  dataStructures/TapeFileLocation.cpp
  dataStructures/TapeMount.cpp
  dataStructures/TapePool.cpp
35
  dataStructures/TestSourceType.cpp
36
37
38
39
40
41
  dataStructures/UpdateFileInfoRequest.cpp
  dataStructures/User.cpp
  dataStructures/UserGroup.cpp
  dataStructures/UserIdentity.cpp
  dataStructures/VerifyInfo.cpp
  dataStructures/WriteTestResult.cpp
42
43
44
45
46
  admin/AdminHost.cpp
  admin/AdminUser.cpp
  archiveRoutes/ArchiveRoute.cpp
  archiveNS/ArchiveDirEntry.cpp
  archiveNS/ArchiveDirIterator.cpp
47
  archiveNS/ArchiveFile.cpp
48
  archiveNS/ArchiveFileStatus.cpp
49
50
  archiveNS/StorageClass.cpp
  archiveNS/Tape.cpp
51
  archiveNS/TapeFileLocation.cpp
52
  checksum/Checksum.cpp
Eric Cano's avatar
Eric Cano committed
53
  exception/Backtrace.cpp
54
  exception/DiskException.hpp
Eric Cano's avatar
Eric Cano committed
55
56
  exception/Errnum.cpp
  exception/Exception.cpp
57
  exception/TapeException.cpp
58
59
60
61
62
63
64
  log/DummyLogger.cpp
  log/LogContext.cpp
  log/Logger.cpp
  log/Message.cpp
  log/Param.cpp
  log/StringLogger.cpp
  log/SyslogLogger.cpp
65
  log/StdoutLogger.cpp
66
67
68
  priorities/DriveQuota.cpp
  priorities/MountCriteria.cpp
  priorities/UserGroup.cpp
69
70
  processCap/ProcessCap.cpp
  processCap/SmartCap.cpp
71
72
73
  remoteFS/RemoteFileStatus.cpp
  remoteFS/RemotePath.cpp
  remoteFS/RemotePathAndStatus.cpp
Eric Cano's avatar
Eric Cano committed
74
  threading/ChildProcess.cpp
75
  threading/Daemon.cpp
Eric Cano's avatar
Eric Cano committed
76
  threading/Mutex.cpp
77
  threading/System.cpp
78
  threading/Threading.cpp
79
80
81
82
83
84
85
86
  utils/Utils.cpp
  utils/strerror_r_wrapper.cpp
  ArchiveRequest.cpp
  CreationLog.cpp
  Configuration.cpp
  SecurityIdentity.cpp
  TapePool.cpp
  Timer.cpp
87
  UserIdentity.cpp
88
  VO.cpp)
Eric Cano's avatar
Eric Cano committed
89

90
91
add_library (ctacommon SHARED
  ${COMMON_LIB_SRC_FILES})
92
install (TARGETS ctacommon DESTINATION usr/${CMAKE_INSTALL_LIBDIR})
Eric Cano's avatar
Eric Cano committed
93

94
target_link_libraries (ctacommon
95
  ctautils
Steven Murray's avatar
Steven Murray committed
96
  pthread
Steven Murray's avatar
Steven Murray committed
97
  ${SQLITE3_LIBRARY_RELEASE}
98
  uuid
99
  z
100
101
  Utils
  cap)
Eric Cano's avatar
Eric Cano committed
102

103
set (COMMON_UNIT_TESTS_LIB_SRC_FILES
104
  checksum/ChecksumTest.cpp
105
106
107
  log/LogContextTest.cpp
  log/ParamTest.cpp
  log/SyslogLoggerTest.cpp
108
  log/StringLoggerTest.cpp
109
  remoteFS/RemotePathTest.cpp
110
111
112
  threading/DaemonTest.cpp
  utils/UtilsTest.cpp
  UserIdentityTest.cpp)
Eric Cano's avatar
Eric Cano committed
113

114
115
add_library (ctacommonunittests SHARED
  ${COMMON_UNIT_TESTS_LIB_SRC_FILES})