CMakeLists.txt 533 Bytes
Newer Older
Eric Cano's avatar
Eric Cano committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
cmake_minimum_required (VERSION 2.6)

set (UTILS_LIB_SRC_FILES
  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)

add_library (ctautils SHARED
  ${UTILS_LIB_SRC_FILES})

target_link_libraries (ctautils ${SQLITE3_LIBRARY_RELEASE}
  pthread)

set (UTILS_UNIT_TESTS_LIB_SRC_FILES
  UtilsTest.cpp)

add_library (ctautilsunittests SHARED
  ${UTILS_UNIT_TESTS_LIB_SRC_FILES})