forked from bloomberg/comdb2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
84 lines (81 loc) · 1.58 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
add_library(lua
lapi.c
lauxlib.c
lbaselib.c
lcode.c
ldblib.c
ldebug.c
ldo.c
ldump.c
lfunc.c
lgc.c
linit.c
liolib.c
llex.c
lmathlib.c
lmem.c
loadlib.c
lobject.c
lopcodes.c
loslib.c
lparser.c
lstate.c
lstring.c
lstrlib.c
ltable.c
ltablib.c
ltm.c
ltypes.c
luautil.c
lundump.c
lvm.c
lzio.c
sp.c
syssp.c
)
set(module lua)
set(MODULE LUA)
configure_file(${PROJECT_SOURCE_DIR}/mem/mem.h.in mem_lua.h @ONLY)
include(${PROJECT_SOURCE_DIR}/sqlite/definitions.cmake)
add_definitions(
-DLUASP
-DLUA_USE_POSIX
-DLUA_USE_DLOPEN
${SQLITE_FLAGS}
)
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${PROJECT_SOURCE_DIR}
${PROJECT_SOURCE_DIR}/util
${PROJECT_SOURCE_DIR}/bbinc
${PROJECT_BINARY_DIR}/bbinc
${PROJECT_SOURCE_DIR}/bdb
${PROJECT_SOURCE_DIR}/cdb2api
${PROJECT_SOURCE_DIR}/csc2
${PROJECT_SOURCE_DIR}/cson
${PROJECT_SOURCE_DIR}/datetime
${PROJECT_SOURCE_DIR}/db
${PROJECT_BINARY_DIR}/db
${PROJECT_SOURCE_DIR}/dfp/decNumber
${PROJECT_SOURCE_DIR}/dfp/dfpal
${PROJECT_SOURCE_DIR}/dlmalloc
${PROJECT_SOURCE_DIR}/mem
${PROJECT_BINARY_DIR}/mem
${PROJECT_SOURCE_DIR}/net
${PROJECT_BINARY_DIR}/protobuf
${PROJECT_SOURCE_DIR}/sqlite/src
${PROJECT_SOURCE_DIR}/sqlite/ext/misc
${PROJECT_BINARY_DIR}/sqlite
${PROJECT_SOURCE_DIR}/berkdb
${OPENSSL_INCLUDE_DIR}
${PROTOBUF-C_INCLUDE_DIR}
if(WITH_RDKAFKA)
${RDKAFKA_INCLUDE_DIR}
endif()
)
if (COMDB2_BBCMAKE)
target_link_libraries(lua PUBLIC protobuf-c openssl)
comdb2_bb_target(lua)
endif()
add_dependencies(lua mem proto sqlite)