CMakeLists.txt 873 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
14
  RemoteFileStatus.cpp
15
  RemotePath.cpp
Steven Murray's avatar
Steven Murray committed
16
  RemotePathAndStatus.cpp
17
  SmartFd.cpp
18
  strerror_r_wrapper.cpp
19
  Timer.cpp
Eric Cano's avatar
Eric Cano committed
20
21
  threading/ChildProcess.cpp
  threading/Mutex.cpp
22
23
24
  threading/Threading.cpp
  UserIdentity.cpp
  Utils.cpp)
Eric Cano's avatar
Eric Cano committed
25

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

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

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

42
43
add_library (ctacommonunittests SHARED
  ${COMMON_UNIT_TESTS_LIB_SRC_FILES})