CMakeLists.txt 817 Bytes
Newer Older
Eric Cano's avatar
Eric Cano committed
1
2
cmake_minimum_required (VERSION 2.6)

3
set (COMMON_LIB_SRC_FILES
4
  ArchiveDirEntry.cpp
5
  ArchiveDirIterator.cpp
6
  ArchiveFileStatus.cpp
Steven Murray's avatar
Steven Murray committed
7
8
  ByteArray.cpp
  Checksum.cpp
Eric Cano's avatar
Eric Cano committed
9
10
11
  exception/Backtrace.cpp
  exception/Errnum.cpp
  exception/Exception.cpp
12
  RemoteFileStatus.cpp
13
  RemotePath.cpp
Steven Murray's avatar
Steven Murray committed
14
  RemotePathAndStatus.cpp
15
  SmartFd.cpp
16
  strerror_r_wrapper.cpp
17
  Timer.cpp
Eric Cano's avatar
Eric Cano committed
18
19
  threading/ChildProcess.cpp
  threading/Mutex.cpp
20
21
22
  threading/Threading.cpp
  UserIdentity.cpp
  Utils.cpp)
Eric Cano's avatar
Eric Cano committed
23

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

27
28
target_link_libraries (ctacommon
  ${SQLITE3_LIBRARY_RELEASE}
Steven Murray's avatar
Steven Murray committed
29
30
  pthread
  uuid)
Eric Cano's avatar
Eric Cano committed
31

32
set (COMMON_UNIT_TESTS_LIB_SRC_FILES
Steven Murray's avatar
Steven Murray committed
33
34
  ByteArrayTest.cpp
  ChecksumTest.cpp
35
  RemotePathTest.cpp
Steven Murray's avatar
Steven Murray committed
36
  SmartFdTest.cpp
Eric Cano's avatar
Eric Cano committed
37
38
  UtilsTest.cpp)

39
40
add_library (ctacommonunittests SHARED
  ${COMMON_UNIT_TESTS_LIB_SRC_FILES})