CMakeLists.txt 2.95 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/MountGroup.cpp
21
  dataStructures/MountType.cpp
22
  dataStructures/MountPolicy.cpp
23
24
  dataStructures/ReadTestResult.cpp
  dataStructures/RepackInfo.cpp
25
  dataStructures/RepackType.cpp
26
27
28
29
30
31
32
  dataStructures/RetrieveJob.cpp
  dataStructures/RetrieveRequest.cpp
  dataStructures/SecurityIdentity.cpp
  dataStructures/StorageClass.cpp
  dataStructures/Tape.cpp
  dataStructures/TapeFileLocation.cpp
  dataStructures/TapePool.cpp
33
  dataStructures/TestSourceType.cpp
34
35
36
37
38
  dataStructures/UpdateFileInfoRequest.cpp
  dataStructures/User.cpp
  dataStructures/UserIdentity.cpp
  dataStructures/VerifyInfo.cpp
  dataStructures/WriteTestResult.cpp
39
  dataStructures/utils.cpp
40
41
42
43
44
  admin/AdminHost.cpp
  admin/AdminUser.cpp
  archiveRoutes/ArchiveRoute.cpp
  archiveNS/ArchiveDirEntry.cpp
  archiveNS/ArchiveDirIterator.cpp
45
  archiveNS/ArchiveFile.cpp
46
  archiveNS/ArchiveFileStatus.cpp
47
48
  archiveNS/StorageClass.cpp
  archiveNS/Tape.cpp
49
  archiveNS/TapeFileLocation.cpp
50
  checksum/Checksum.cpp
Eric Cano's avatar
Eric Cano committed
51
52
53
  exception/Backtrace.cpp
  exception/Errnum.cpp
  exception/Exception.cpp
54
55
56
57
58
59
60
  log/DummyLogger.cpp
  log/LogContext.cpp
  log/Logger.cpp
  log/Message.cpp
  log/Param.cpp
  log/StringLogger.cpp
  log/SyslogLogger.cpp
61
  log/StdoutLogger.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
  utils/utils.cpp
76
77
78
79
80
81
  utils/strerror_r_wrapper.cpp
  CreationLog.cpp
  Configuration.cpp
  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
Steven Murray's avatar
Steven Murray committed
92
  ${SQLITE3_LIBRARY_RELEASE}
93
  uuid
94
  z
95
96
  Utils
  cap)
Eric Cano's avatar
Eric Cano committed
97

98
set (COMMON_UNIT_TESTS_LIB_SRC_FILES
99
  checksum/ChecksumTest.cpp
100
101
102
  log/LogContextTest.cpp
  log/ParamTest.cpp
  log/SyslogLoggerTest.cpp
103
  log/StringLoggerTest.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})
111

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