CMakeLists.txt 2.92 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
51
52
  exception/Backtrace.cpp
  exception/Errnum.cpp
  exception/Exception.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
  log/StdoutLogger.cpp
61
62
63
  priorities/DriveQuota.cpp
  priorities/MountCriteria.cpp
  priorities/UserGroup.cpp
64
65
  processCap/ProcessCap.cpp
  processCap/SmartCap.cpp
66
67
68
  remoteFS/RemoteFileStatus.cpp
  remoteFS/RemotePath.cpp
  remoteFS/RemotePathAndStatus.cpp
Eric Cano's avatar
Eric Cano committed
69
  threading/ChildProcess.cpp
70
  threading/Daemon.cpp
Eric Cano's avatar
Eric Cano committed
71
  threading/Mutex.cpp
72
  threading/System.cpp
73
  threading/Threading.cpp
74
  utils/utils.cpp
75
76
77
78
79
80
  utils/strerror_r_wrapper.cpp
  CreationLog.cpp
  Configuration.cpp
  SecurityIdentity.cpp
  TapePool.cpp
  Timer.cpp
81
  UserIdentity.cpp
82
  VO.cpp)
Eric Cano's avatar
Eric Cano committed
83

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

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

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

108
109
add_library (ctacommonunittests SHARED
  ${COMMON_UNIT_TESTS_LIB_SRC_FILES})
110

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