CMakeLists.txt 2.9 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
14
15
  dataStructures/ArchiveJob.cpp
  dataStructures/ArchiveMount.cpp
  dataStructures/ArchiveRequest.cpp
  dataStructures/ArchiveRoute.cpp
  dataStructures/CancelRetrieveRequest.cpp
  dataStructures/Dedication.cpp
  dataStructures/DeleteArchiveRequest.cpp
  dataStructures/DRData.cpp
16
  dataStructures/DriveState.cpp
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
  dataStructures/EntryLog.cpp
  dataStructures/ListStorageClassRequest.cpp
  dataStructures/ReadTestResult.cpp
  dataStructures/RepackInfo.cpp
  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
  dataStructures/UpdateFileInfoRequest.cpp
  dataStructures/User.cpp
  dataStructures/UserGroup.cpp
  dataStructures/UserIdentity.cpp
  dataStructures/VerifyInfo.cpp
  dataStructures/WriteTestResult.cpp
37
38
39
40
41
  admin/AdminHost.cpp
  admin/AdminUser.cpp
  archiveRoutes/ArchiveRoute.cpp
  archiveNS/ArchiveDirEntry.cpp
  archiveNS/ArchiveDirIterator.cpp
42
  archiveNS/ArchiveFile.cpp
43
  archiveNS/ArchiveFileStatus.cpp
44
45
  archiveNS/StorageClass.cpp
  archiveNS/Tape.cpp
46
  archiveNS/TapeFileLocation.cpp
47
  checksum/Checksum.cpp
Eric Cano's avatar
Eric Cano committed
48
  exception/Backtrace.cpp
49
  exception/DiskException.hpp
Eric Cano's avatar
Eric Cano committed
50
51
  exception/Errnum.cpp
  exception/Exception.cpp
52
  exception/TapeException.cpp
53
54
55
56
57
58
59
  log/DummyLogger.cpp
  log/LogContext.cpp
  log/Logger.cpp
  log/Message.cpp
  log/Param.cpp
  log/StringLogger.cpp
  log/SyslogLogger.cpp
60
61
62
  priorities/DriveQuota.cpp
  priorities/MountCriteria.cpp
  priorities/UserGroup.cpp
63
64
  processCap/ProcessCap.cpp
  processCap/SmartCap.cpp
65
66
67
  remoteFS/RemoteFileStatus.cpp
  remoteFS/RemotePath.cpp
  remoteFS/RemotePathAndStatus.cpp
Eric Cano's avatar
Eric Cano committed
68
  threading/ChildProcess.cpp
69
  threading/Daemon.cpp
Eric Cano's avatar
Eric Cano committed
70
  threading/Mutex.cpp
71
  threading/System.cpp
72
  threading/Threading.cpp
73
74
75
76
77
  utils/Utils.cpp
  utils/strerror_r_wrapper.cpp
  ArchiveRequest.cpp
  CreationLog.cpp
  Configuration.cpp
78
  QtCoreAppSingleton.cpp
79
80
81
  SecurityIdentity.cpp
  TapePool.cpp
  Timer.cpp
82
  UserIdentity.cpp
83
  VO.cpp)
Eric Cano's avatar
Eric Cano committed
84

85
86
add_library (ctacommon SHARED
  ${COMMON_LIB_SRC_FILES})
87
install (TARGETS ctacommon DESTINATION usr/${CMAKE_INSTALL_LIBDIR})
Eric Cano's avatar
Eric Cano committed
88

89
target_link_libraries (ctacommon
90
  ctautils
Steven Murray's avatar
Steven Murray committed
91
  pthread
92
  QtCore
Steven Murray's avatar
Steven Murray committed
93
  ${SQLITE3_LIBRARY_RELEASE}
94
  uuid
95
  z
96
97
  Utils
  cap)
Eric Cano's avatar
Eric Cano committed
98

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

111
112
add_library (ctacommonunittests SHARED
  ${COMMON_UNIT_TESTS_LIB_SRC_FILES})