CMakeLists.txt 1.11 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
  admin/AdminHost.cpp
  admin/AdminUser.cpp
  archiveRoutes/ArchiveRoute.cpp
  archiveRoutes/ArchiveRouteId.cpp
  archiveNS/ArchiveDirEntry.cpp
  archiveNS/ArchiveDirIterator.cpp
  archiveNS/ArchiveFileStatus.cpp
  archiveNS/TapeCopyLocationAndStatus.cpp
  CreationLog.cpp
  checksum/ByteArray.cpp
  checksum/Checksum.cpp
Eric Cano's avatar
Eric Cano committed
17
18
19
  exception/Backtrace.cpp
  exception/Errnum.cpp
  exception/Exception.cpp
Steven Murray's avatar
Steven Murray committed
20
  exception/Serrnum.cpp
21
22
23
  remoteFS/RemoteFileStatus.cpp
  remoteFS/RemotePath.cpp
  remoteFS/RemotePathAndStatus.cpp
24
  strerror_r_wrapper.cpp
25
  Timer.cpp
Eric Cano's avatar
Eric Cano committed
26
27
  threading/ChildProcess.cpp
  threading/Mutex.cpp
28
29
30
  threading/Threading.cpp
  UserIdentity.cpp
  Utils.cpp)
Eric Cano's avatar
Eric Cano committed
31

32
33
add_library (ctacommon SHARED
  ${COMMON_LIB_SRC_FILES})
Eric Cano's avatar
Eric Cano committed
34

35
target_link_libraries (ctacommon
Steven Murray's avatar
Steven Murray committed
36
  castorcommon
Steven Murray's avatar
Steven Murray committed
37
  pthread
Steven Murray's avatar
Steven Murray committed
38
  ${SQLITE3_LIBRARY_RELEASE}
Steven Murray's avatar
Steven Murray committed
39
  uuid)
Eric Cano's avatar
Eric Cano committed
40

41
set (COMMON_UNIT_TESTS_LIB_SRC_FILES
42
43
44
  checksum/ByteArrayTest.cpp
  checksum/ChecksumTest.cpp
  remoteFS/RemotePathTest.cpp
Eric Cano's avatar
Eric Cano committed
45
46
  UtilsTest.cpp)

47
48
add_library (ctacommonunittests SHARED
  ${COMMON_UNIT_TESTS_LIB_SRC_FILES})