CMakeLists.txt 1.5 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
    "src/vnd/vnodeBufPool.c"
H
Hongze Cheng 已提交
9 10 11 12
    "src/vnd/vnodeCfg.c"
    "src/vnd/vnodeCommit.c"
    "src/vnd/vnodeQuery.c"
    "src/vnd/vnodeStateMgr.c"
H
Hongze Cheng 已提交
13
    "src/vnd/vnodeModule.c"
H
Hongze Cheng 已提交
14
    "src/vnd/vnodeSvr.c"
M
Minghao Li 已提交
15
    "src/vnd/vnodeSync.c"
H
Hongze Cheng 已提交
16

H
Hongze Cheng 已提交
17
    # meta
H
Hongze Cheng 已提交
18
    "src/meta/metaOpen.c"
H
Hongze Cheng 已提交
19 20
    "src/meta/metaIdx.c"
    "src/meta/metaTable.c"
H
Hongze Cheng 已提交
21
    "src/meta/metaQuery.c"
H
Hongze Cheng 已提交
22
    "src/meta/metaCommit.c"
H
Hongze Cheng 已提交
23
    "src/meta/metaEntry.c"
H
Hongze Cheng 已提交
24

H
Hongze Cheng 已提交
25
    # tsdb
C
Cary Xu 已提交
26
    "src/tsdb/tsdbTDBImpl.c"
H
Hongze Cheng 已提交
27
    "src/tsdb/tsdbCommit.c"
H
Hongze Cheng 已提交
28
    "src/tsdb/tsdbCommit2.c"
H
Hongze Cheng 已提交
29 30
    "src/tsdb/tsdbFile.c"
    "src/tsdb/tsdbFS.c"
H
Hongze Cheng 已提交
31
    "src/tsdb/tsdbOpen.c"
H
Hongze Cheng 已提交
32
    "src/tsdb/tsdbMemTable.c"
H
Hongze Cheng 已提交
33
    "src/tsdb/tsdbMemTable2.c"
H
Hongze Cheng 已提交
34 35
    "src/tsdb/tsdbRead.c"
    "src/tsdb/tsdbReadImpl.c"
C
Cary Xu 已提交
36
    "src/tsdb/tsdbSma.c"
H
Hongze Cheng 已提交
37
    "src/tsdb/tsdbWrite.c"
H
Hongze Cheng 已提交
38

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

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