CMakeLists.txt 2.43 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
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
  dataStructures/AdminHost.cpp
  dataStructures/AdminUser.cpp
  dataStructures/ArchiveFile.cpp
  dataStructures/ArchiveJob.cpp
  dataStructures/ArchiveMount.cpp
  dataStructures/ArchiveRequest.cpp
  dataStructures/ArchiveRoute.cpp
  dataStructures/CancelRetrieveRequest.cpp
  dataStructures/Dedication.cpp
  dataStructures/DeleteArchiveRequest.cpp
  dataStructures/DRData.cpp
  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
37
38
39
40
41
  admin/AdminHost.cpp
  admin/AdminUser.cpp
  archiveRoutes/ArchiveRoute.cpp
  archiveNS/ArchiveDirEntry.cpp
  archiveNS/ArchiveDirIterator.cpp
42
  archiveNS/ArchiveFile.cpp
43
  archiveNS/ArchiveFileStatus.cpp
44
45
  archiveNS/StorageClass.cpp
  archiveNS/Tape.cpp
46
  archiveNS/TapeFileLocation.cpp
47
  ArchiveRequest.cpp
48
49
  CreationLog.cpp
  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
Steven Murray's avatar
Steven Murray committed
54
  exception/Serrnum.cpp
55
56
57
58
  exception/TapeException.cpp
  priorities/DriveQuota.cpp
  priorities/MountCriteria.cpp
  priorities/UserGroup.cpp
59
60
61
  remoteFS/RemoteFileStatus.cpp
  remoteFS/RemotePath.cpp
  remoteFS/RemotePathAndStatus.cpp
62
  SecurityIdentity.cpp
63
  strerror_r_wrapper.cpp
64
  TapePool.cpp
65
  Timer.cpp
Eric Cano's avatar
Eric Cano committed
66
67
  threading/ChildProcess.cpp
  threading/Mutex.cpp
68
69
  threading/Threading.cpp
  UserIdentity.cpp
70
71
  Utils.cpp
  VO.cpp)
Eric Cano's avatar
Eric Cano committed
72

73
74
add_library (ctacommon SHARED
  ${COMMON_LIB_SRC_FILES})
75
install (TARGETS ctacommon DESTINATION usr/${CMAKE_INSTALL_LIBDIR})
Eric Cano's avatar
Eric Cano committed
76

77
target_link_libraries (ctacommon
78
  ctautils
Steven Murray's avatar
Steven Murray committed
79
  pthread
Steven Murray's avatar
Steven Murray committed
80
  ${SQLITE3_LIBRARY_RELEASE}
81
  uuid
82
83
  z
  Utils)
Eric Cano's avatar
Eric Cano committed
84

85
set (COMMON_UNIT_TESTS_LIB_SRC_FILES
86
87
  checksum/ChecksumTest.cpp
  remoteFS/RemotePathTest.cpp
88
  UserIdentityTest.cpp
Eric Cano's avatar
Eric Cano committed
89
90
  UtilsTest.cpp)

91
92
add_library (ctacommonunittests SHARED
  ${COMMON_UNIT_TESTS_LIB_SRC_FILES})