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

3
set (COMMON_LIB_SRC_FILES
Steven Murray's avatar
Steven Murray committed
4
  SmartFd.cpp
Eric Cano's avatar
Eric Cano committed
5
6
7
8
9
10
11
12
13
14
  Timer.cpp
  Utils.cpp
  exception/Backtrace.cpp
  exception/Errnum.cpp
  exception/Exception.cpp
  exception/strerror_r_wrapper.cpp
  threading/ChildProcess.cpp
  threading/Mutex.cpp
  threading/Threading.cpp)

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

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

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

27
28
add_library (ctacommonunittests SHARED
  ${COMMON_UNIT_TESTS_LIB_SRC_FILES})