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

3
set (COMMON_LIB_SRC_FILES
Eric Cano's avatar
Eric Cano committed
4
5
6
7
8
9
10
11
12
13
  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)

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

17
18
target_link_libraries (ctacommon
  ${SQLITE3_LIBRARY_RELEASE}
Eric Cano's avatar
Eric Cano committed
19
20
  pthread)

21
set (COMMON_UNIT_TESTS_LIB_SRC_FILES
Eric Cano's avatar
Eric Cano committed
22
23
  UtilsTest.cpp)

24
25
add_library (ctacommonunittests SHARED
  ${COMMON_UNIT_TESTS_LIB_SRC_FILES})