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

42
43
add_library (ctacommon SHARED
  ${COMMON_LIB_SRC_FILES})
44
install (TARGETS ctacommon DESTINATION usr/${CMAKE_INSTALL_LIBDIR})
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
  uuid
51
52
  z
  Utils)
Eric Cano's avatar
Eric Cano committed
53

54
set (COMMON_UNIT_TESTS_LIB_SRC_FILES
55
56
  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})