CMakeLists.txt 606 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
  FileStatus.cpp
Steven Murray's avatar
Steven Murray committed
5
  SmartFd.cpp
Eric Cano's avatar
Eric Cano committed
6
  Timer.cpp
7
  UserIdentity.cpp
Eric Cano's avatar
Eric Cano committed
8
9
10
11
  Utils.cpp
  exception/Backtrace.cpp
  exception/Errnum.cpp
  exception/Exception.cpp
12
  strerror_r_wrapper.cpp
Eric Cano's avatar
Eric Cano committed
13
14
15
16
  threading/ChildProcess.cpp
  threading/Mutex.cpp
  threading/Threading.cpp)

17
18
add_library (ctacommon SHARED
  ${COMMON_LIB_SRC_FILES})
Eric Cano's avatar
Eric Cano committed
19

20
21
target_link_libraries (ctacommon
  ${SQLITE3_LIBRARY_RELEASE}
Steven Murray's avatar
Steven Murray committed
22
23
  pthread
  uuid)
Eric Cano's avatar
Eric Cano committed
24

25
set (COMMON_UNIT_TESTS_LIB_SRC_FILES
Steven Murray's avatar
Steven Murray committed
26
  SmartFdTest.cpp
Eric Cano's avatar
Eric Cano committed
27
28
  UtilsTest.cpp)

29
30
add_library (ctacommonunittests SHARED
  ${COMMON_UNIT_TESTS_LIB_SRC_FILES})