forked from bloomberg/comdb2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
67 lines (67 loc) · 1.17 KB
/
CMakeLists.txt
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
set(module bb)
set(MODULE BB)
configure_file(${PROJECT_SOURCE_DIR}/mem/mem.h.in mem_bb.h @ONLY)
set(src
averager.c
bb_asprintf.c
bb_daemon.c
bb_getopt_long.c
bb_oscompat.c
bbhrtime.c
cheapstub.c
comdb2_pthread_create.c
comdb2file.c
ctrace.c
debug_switches.c
flibc.c
fsnapf.c
int_overflow.c
intern_strings.c
list.c
lockassert.c
logmsg.c
misc.c
nodemap.c
object_pool.c
plhash.c
pool.c
pooltest.c
portmuxusr.c
queue.c
queuetest.c
roll_file.c
rtcpu.c
safestrerror.c
sbuf2.c
segstring.c
sltpck.c
str0.c
strbuf.c
switches.c
tcputil.c
thdpool.c
thread_malloc.c
thread_util.c
timers.c
utilmisc.c
walkback.c
xstring.c
)
if(WITH_SSL)
list(APPEND src ssl_support.c)
endif()
add_library(bb ${src})
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${PROJECT_SOURCE_DIR}/bbinc
${PROJECT_SOURCE_DIR}/cdb2api
${PROJECT_SOURCE_DIR}/dlmalloc
${PROJECT_SOURCE_DIR}/mem
${PROJECT_BINARY_DIR}/mem
${PROJECT_SOURCE_DIR}/sockpool
${OPENSSL_INCLUDE_DIR}
${UNWIND_INCLUDE_DIR}
)
add_dependencies(bb mem)
set_source_files_properties(walkback.c PROPERTIES COMPILE_FLAGS -DUSE_UNWIND)