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

Steven Murray's avatar
Steven Murray committed
3
4
include_directories(/usr/include/shift)

5
set (COMMON_LIB_SRC_FILES
6
7
8
  dataStructures/AdminHost.cpp
  dataStructures/AdminUser.cpp
  dataStructures/ArchiveFile.cpp
9
  dataStructures/ArchiveFileSummary.cpp
10
11
12
13
14
15
16
17
  dataStructures/ArchiveJob.cpp
  dataStructures/ArchiveMount.cpp
  dataStructures/ArchiveRequest.cpp
  dataStructures/ArchiveRoute.cpp
  dataStructures/CancelRetrieveRequest.cpp
  dataStructures/Dedication.cpp
  dataStructures/DeleteArchiveRequest.cpp
  dataStructures/DRData.cpp
18
  dataStructures/DriveState.cpp
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
  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
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
63
64
  priorities/DriveQuota.cpp
  priorities/MountCriteria.cpp
  priorities/UserGroup.cpp
65
66
  processCap/ProcessCap.cpp
  processCap/SmartCap.cpp
67
68
69
  remoteFS/RemoteFileStatus.cpp
  remoteFS/RemotePath.cpp
  remoteFS/RemotePathAndStatus.cpp
Eric Cano's avatar
Eric Cano committed
70
  threading/ChildProcess.cpp
71
  threading/Daemon.cpp
Eric Cano's avatar
Eric Cano committed
72
  threading/Mutex.cpp
73
  threading/System.cpp
74
  threading/Threading.cpp
75
76
77
78
79
80
81
82
  utils/Utils.cpp
  utils/strerror_r_wrapper.cpp
  ArchiveRequest.cpp
  CreationLog.cpp
  Configuration.cpp
  SecurityIdentity.cpp
  TapePool.cpp
  Timer.cpp
83
  UserIdentity.cpp
84
  VO.cpp)
Eric Cano's avatar
Eric Cano committed
85

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

90
target_link_libraries (ctacommon
91
  ctautils
Steven Murray's avatar
Steven Murray committed
92
  pthread
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
  remoteFS/RemotePathTest.cpp
105
106
107
  threading/DaemonTest.cpp
  utils/UtilsTest.cpp
  UserIdentityTest.cpp)
Eric Cano's avatar
Eric Cano committed
108

109
110
add_library (ctacommonunittests SHARED
  ${COMMON_UNIT_TESTS_LIB_SRC_FILES})