CMakeLists.txt 2.46 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
  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
17
  dataStructures/DriveState.cpp
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
  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
38
39
40
41
42
  admin/AdminHost.cpp
  admin/AdminUser.cpp
  archiveRoutes/ArchiveRoute.cpp
  archiveNS/ArchiveDirEntry.cpp
  archiveNS/ArchiveDirIterator.cpp
43
  archiveNS/ArchiveFile.cpp
44
  archiveNS/ArchiveFileStatus.cpp
45
46
  archiveNS/StorageClass.cpp
  archiveNS/Tape.cpp
47
  archiveNS/TapeFileLocation.cpp
48
  ArchiveRequest.cpp
49
50
  CreationLog.cpp
  checksum/Checksum.cpp
Eric Cano's avatar
Eric Cano committed
51
  exception/Backtrace.cpp
52
  exception/DiskException.hpp
Eric Cano's avatar
Eric Cano committed
53
54
  exception/Errnum.cpp
  exception/Exception.cpp
Steven Murray's avatar
Steven Murray committed
55
  exception/Serrnum.cpp
56
57
58
59
  exception/TapeException.cpp
  priorities/DriveQuota.cpp
  priorities/MountCriteria.cpp
  priorities/UserGroup.cpp
60
61
62
  remoteFS/RemoteFileStatus.cpp
  remoteFS/RemotePath.cpp
  remoteFS/RemotePathAndStatus.cpp
63
  SecurityIdentity.cpp
64
  strerror_r_wrapper.cpp
65
  TapePool.cpp
66
  Timer.cpp
Eric Cano's avatar
Eric Cano committed
67
68
  threading/ChildProcess.cpp
  threading/Mutex.cpp
69
70
  threading/Threading.cpp
  UserIdentity.cpp
71
72
  Utils.cpp
  VO.cpp)
Eric Cano's avatar
Eric Cano committed
73

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

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

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

92
93
add_library (ctacommonunittests SHARED
  ${COMMON_UNIT_TESTS_LIB_SRC_FILES})