CMakeLists.txt 1.6 KB
Newer Older
H
Hongze Cheng 已提交
1 2 3 4 5 6
# vnode
add_library(vnode STATIC "")
target_sources(
    vnode
    PRIVATE
    # vnode
H
Hongze Cheng 已提交
7
    "src/vnd/vnodeOpen.c"
H
Hongze Cheng 已提交
8 9
    "src/vnd/vnodeArenaMAImpl.c"
    "src/vnd/vnodeBufferPool.c"
H
Hongze Cheng 已提交
10
    # "src/vnd/vnodeBufferPool2.c"
H
Hongze Cheng 已提交
11 12 13 14 15
    "src/vnd/vnodeCfg.c"
    "src/vnd/vnodeCommit.c"
    "src/vnd/vnodeInt.c"
    "src/vnd/vnodeQuery.c"
    "src/vnd/vnodeStateMgr.c"
H
Hongze Cheng 已提交
16
    "src/vnd/vnodeModule.c"
H
Hongze Cheng 已提交
17
    "src/vnd/vnodeSvr.c"
H
Hongze Cheng 已提交
18

H
Hongze Cheng 已提交
19
    # meta
H
Hongze Cheng 已提交
20
    "src/meta/metaOpen.c"
H
Hongze Cheng 已提交
21 22 23
    "src/meta/metaIdx.c"
    "src/meta/metaTable.c"
    "src/meta/metaTDBImpl.c"
H
Hongze Cheng 已提交
24
    "src/meta/metaQuery.c"
H
Hongze Cheng 已提交
25

H
Hongze Cheng 已提交
26
    # tsdb
C
Cary Xu 已提交
27
    "src/tsdb/tsdbTDBImpl.c"
H
Hongze Cheng 已提交
28 29 30 31 32 33 34 35 36 37
    "src/tsdb/tsdbCommit.c"
    "src/tsdb/tsdbCompact.c"
    "src/tsdb/tsdbFile.c"
    "src/tsdb/tsdbFS.c"
    "src/tsdb/tsdbMain.c"
    "src/tsdb/tsdbMemTable.c"
    "src/tsdb/tsdbOptions.c"
    "src/tsdb/tsdbRead.c"
    "src/tsdb/tsdbReadImpl.c"
    "src/tsdb/tsdbScan.c"
C
Cary Xu 已提交
38
    "src/tsdb/tsdbSma.c"
H
Hongze Cheng 已提交
39
    "src/tsdb/tsdbWrite.c"
H
Hongze Cheng 已提交
40

H
Hongze Cheng 已提交
41 42 43 44 45 46 47
    # tq
    "src/tq/tq.c"
    "src/tq/tqCommit.c"
    "src/tq/tqMetaStore.c"
    "src/tq/tqOffset.c"
    "src/tq/tqPush.c"
    "src/tq/tqRead.c"
H
Hongze Cheng 已提交
48 49 50
)
target_include_directories(
    vnode
H
Hongze Cheng 已提交
51 52
    PUBLIC "inc"
    PRIVATE "src/inc"
dengyihao's avatar
dengyihao 已提交
53 54
    PUBLIC "${TD_SOURCE_DIR}/include/libs/scalar"
    
H
Hongze Cheng 已提交
55 56 57 58 59 60 61 62 63
)
target_link_libraries(
    vnode
    PUBLIC os
    PUBLIC util
    PUBLIC common
    PUBLIC tfs
    PUBLIC wal
    PUBLIC qworker
S
Shengliang Guan 已提交
64
    PUBLIC sync
H
Hongze Cheng 已提交
65 66
    PUBLIC executor
    PUBLIC scheduler
H
Hongze Cheng 已提交
67
    PUBLIC tdb
L
Liu Jicong 已提交
68
    #PUBLIC bdb
dengyihao's avatar
dengyihao 已提交
69
    #PUBLIC scalar
H
Hongze Cheng 已提交
70 71
    PUBLIC transport
    PUBLIC stream
H
Hongze Cheng 已提交
72
)
H
Hongze Cheng 已提交
73
# target_compile_definitions(vnode PUBLIC -DMETA_REFACT)
H
Hongze Cheng 已提交
74 75

if(${BUILD_TEST})
C
Cary Xu 已提交
76
    add_subdirectory(test)
H
Hongze Cheng 已提交
77
endif(${BUILD_TEST})