CMakeLists.txt 929 Bytes
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
  ArchiveDirEntry.cpp
7
  ArchiveDirIterator.cpp
8
  ArchiveFileStatus.cpp
Steven Murray's avatar
Steven Murray committed
9
10
  ByteArray.cpp
  Checksum.cpp
Eric Cano's avatar
Eric Cano committed
11
12
13
  exception/Backtrace.cpp
  exception/Errnum.cpp
  exception/Exception.cpp
Steven Murray's avatar
Steven Murray committed
14
  exception/Serrnum.cpp
15
  RemoteFileStatus.cpp
16
  RemotePath.cpp
Steven Murray's avatar
Steven Murray committed
17
  RemotePathAndStatus.cpp
18
  SmartFd.cpp
19
  strerror_r_wrapper.cpp
20
  TapeCopyLocationAndStatus.cpp
21
  Timer.cpp
Eric Cano's avatar
Eric Cano committed
22
23
  threading/ChildProcess.cpp
  threading/Mutex.cpp
24
25
26
  threading/Threading.cpp
  UserIdentity.cpp
  Utils.cpp)
Eric Cano's avatar
Eric Cano committed
27

28
29
add_library (ctacommon SHARED
  ${COMMON_LIB_SRC_FILES})
Eric Cano's avatar
Eric Cano committed
30

31
target_link_libraries (ctacommon
Steven Murray's avatar
Steven Murray committed
32
  castorcommon
Steven Murray's avatar
Steven Murray committed
33
  pthread
Steven Murray's avatar
Steven Murray committed
34
  ${SQLITE3_LIBRARY_RELEASE}
Steven Murray's avatar
Steven Murray committed
35
  uuid)
Eric Cano's avatar
Eric Cano committed
36

37
set (COMMON_UNIT_TESTS_LIB_SRC_FILES
Steven Murray's avatar
Steven Murray committed
38
39
  ByteArrayTest.cpp
  ChecksumTest.cpp
40
  RemotePathTest.cpp
Steven Murray's avatar
Steven Murray committed
41
  SmartFdTest.cpp
Eric Cano's avatar
Eric Cano committed
42
43
  UtilsTest.cpp)

44
45
add_library (ctacommonunittests SHARED
  ${COMMON_UNIT_TESTS_LIB_SRC_FILES})