CMakeLists.txt 2.98 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
  dataStructures/RetrieveJob.cpp
  dataStructures/RetrieveRequest.cpp
  dataStructures/SecurityIdentity.cpp
  dataStructures/StorageClass.cpp
  dataStructures/Tape.cpp
  dataStructures/TapeFileLocation.cpp
32
  dataStructures/TapeLog.cpp
33
  dataStructures/TapePool.cpp
34
  dataStructures/TestSourceType.cpp
35
36
37
38
39
  dataStructures/UpdateFileInfoRequest.cpp
  dataStructures/User.cpp
  dataStructures/UserIdentity.cpp
  dataStructures/VerifyInfo.cpp
  dataStructures/WriteTestResult.cpp
40
  dataStructures/utils.cpp
41
42
43
44
45
  admin/AdminHost.cpp
  admin/AdminUser.cpp
  archiveRoutes/ArchiveRoute.cpp
  archiveNS/ArchiveDirEntry.cpp
  archiveNS/ArchiveDirIterator.cpp
46
  archiveNS/ArchiveFile.cpp
47
  archiveNS/ArchiveFileStatus.cpp
48
49
  archiveNS/StorageClass.cpp
  archiveNS/Tape.cpp
50
  archiveNS/TapeFileLocation.cpp
51
  checksum/Checksum.cpp
Eric Cano's avatar
Eric Cano committed
52
53
54
  exception/Backtrace.cpp
  exception/Errnum.cpp
  exception/Exception.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
  utils/utils.cpp
77
78
79
80
81
82
  utils/strerror_r_wrapper.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
  log/StringLoggerTest.cpp
105
  remoteFS/RemotePathTest.cpp
106
107
108
  threading/DaemonTest.cpp
  utils/UtilsTest.cpp
  UserIdentityTest.cpp)
Eric Cano's avatar
Eric Cano committed
109

110
111
add_library (ctacommonunittests SHARED
  ${COMMON_UNIT_TESTS_LIB_SRC_FILES})
112

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