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

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

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

100
set (COMMON_UNIT_TESTS_LIB_SRC_FILES
101
  checksum/ChecksumTest.cpp
102
103
104
  log/LogContextTest.cpp
  log/ParamTest.cpp
  log/SyslogLoggerTest.cpp
105
  log/StringLoggerTest.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})
113
114

install(TARGETS ctacommonunittests DESTINATION usr/${CMAKE_INSTALL_LIBDIR})