CMakeLists.txt 1.39 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
  admin/AdminHost.cpp
  admin/AdminUser.cpp
  archiveRoutes/ArchiveRoute.cpp
  archiveRoutes/ArchiveRouteId.cpp
  archiveNS/ArchiveDirEntry.cpp
  archiveNS/ArchiveDirIterator.cpp
12
  archiveNS/ArchiveFile.cpp
13
  archiveNS/ArchiveFileStatus.cpp
14
15
  archiveNS/StorageClass.cpp
  archiveNS/Tape.cpp
16
  archiveNS/TapeFileLocation.cpp
17
18
19
  CreationLog.cpp
  checksum/ByteArray.cpp
  checksum/Checksum.cpp
Eric Cano's avatar
Eric Cano committed
20
  exception/Backtrace.cpp
21
  exception/DiskException.hpp
Eric Cano's avatar
Eric Cano committed
22
23
  exception/Errnum.cpp
  exception/Exception.cpp
Steven Murray's avatar
Steven Murray committed
24
  exception/Serrnum.cpp
25
26
27
28
  exception/TapeException.cpp
  priorities/DriveQuota.cpp
  priorities/MountCriteria.cpp
  priorities/UserGroup.cpp
29
30
31
  remoteFS/RemoteFileStatus.cpp
  remoteFS/RemotePath.cpp
  remoteFS/RemotePathAndStatus.cpp
32
  SecurityIdentity.cpp
33
  strerror_r_wrapper.cpp
34
  TapePool.cpp
35
  Timer.cpp
Eric Cano's avatar
Eric Cano committed
36
37
  threading/ChildProcess.cpp
  threading/Mutex.cpp
38
39
  threading/Threading.cpp
  UserIdentity.cpp
40
41
  Utils.cpp
  VO.cpp)
Eric Cano's avatar
Eric Cano committed
42

43
44
add_library (ctacommon SHARED
  ${COMMON_LIB_SRC_FILES})
Eric Cano's avatar
Eric Cano committed
45

46
target_link_libraries (ctacommon
Steven Murray's avatar
Steven Murray committed
47
  castorcommon
Steven Murray's avatar
Steven Murray committed
48
  pthread
Steven Murray's avatar
Steven Murray committed
49
  ${SQLITE3_LIBRARY_RELEASE}
50
51
  uuid
  z)
Eric Cano's avatar
Eric Cano committed
52

53
set (COMMON_UNIT_TESTS_LIB_SRC_FILES
54
55
56
  checksum/ByteArrayTest.cpp
  checksum/ChecksumTest.cpp
  remoteFS/RemotePathTest.cpp
57
  UserIdentityTest.cpp
Eric Cano's avatar
Eric Cano committed
58
59
  UtilsTest.cpp)

60
61
add_library (ctacommonunittests SHARED
  ${COMMON_UNIT_TESTS_LIB_SRC_FILES})