CMakeLists.txt 2.0 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
    "src/vnd/vnodeSnapshot.c"
H
Hongze Cheng 已提交
17
    "src/vnd/vnodeUtil.c"
H
Hongze Cheng 已提交
18

H
Hongze Cheng 已提交
19
    # meta
H
Hongze Cheng 已提交
20
    "src/meta/metaOpen.c"
H
Hongze Cheng 已提交
21 22
    "src/meta/metaIdx.c"
    "src/meta/metaTable.c"
23
    "src/meta/metaSma.c"
H
Hongze Cheng 已提交
24
    "src/meta/metaQuery.c"
H
Hongze Cheng 已提交
25
    "src/meta/metaCommit.c"
H
Hongze Cheng 已提交
26
    "src/meta/metaEntry.c"
H
Hongze Cheng 已提交
27
    "src/meta/metaSnapshot.c"
H
Hongze Cheng 已提交
28

29 30 31
    # sma
    "src/sma/sma.c"
    "src/sma/smaEnv.c"
C
Cary Xu 已提交
32
    "src/sma/smaUtil.c"
33
    "src/sma/smaOpen.c"
C
Cary Xu 已提交
34 35
    "src/sma/smaCommit.c"
    "src/sma/smaSnapshot.c"
36
    "src/sma/smaRollup.c"
C
Cary Xu 已提交
37
    "src/sma/smaTimeRange.c"
38

H
Hongze Cheng 已提交
39 40 41 42
    # tsdb
    "src/tsdb/tsdbCommit.c"
    "src/tsdb/tsdbFile.c"
    "src/tsdb/tsdbFS.c"
H
Hongze Cheng 已提交
43
    "src/tsdb/tsdbOpen.c"
H
Hongze Cheng 已提交
44 45 46
    "src/tsdb/tsdbMemTable.c"
    "src/tsdb/tsdbRead.c"
    "src/tsdb/tsdbReadImpl.c"
47
    "src/tsdb/tsdbCache.c"
H
Hongze Cheng 已提交
48
    "src/tsdb/tsdbWrite.c"
H
refact  
Hongze Cheng 已提交
49
    "src/tsdb/tsdbReaderWriter.c"
H
Hongze Cheng 已提交
50
    "src/tsdb/tsdbUtil.c"
H
Hongze Cheng 已提交
51
    "src/tsdb/tsdbSnapshot.c"
52
    "src/tsdb/tsdbCacheRead.c"
H
Hongze Cheng 已提交
53

H
Hongze Cheng 已提交
54 55
    # tq
    "src/tq/tq.c"
L
Liu Jicong 已提交
56
    "src/tq/tqExec.c"
L
Liu Jicong 已提交
57
    "src/tq/tqMeta.c"
H
Hongze Cheng 已提交
58
    "src/tq/tqRead.c"
L
Liu Jicong 已提交
59
    "src/tq/tqOffset.c"
L
Liu Jicong 已提交
60 61 62
    "src/tq/tqPush.c"
    "src/tq/tqSink.c"
    "src/tq/tqCommit.c"
H
Hongze Cheng 已提交
63 64 65
)
target_include_directories(
    vnode
H
Hongze Cheng 已提交
66 67
    PUBLIC "inc"
    PRIVATE "src/inc"
dengyihao's avatar
dengyihao 已提交
68 69
    PUBLIC "${TD_SOURCE_DIR}/include/libs/scalar"
    
H
Hongze Cheng 已提交
70 71 72 73 74 75 76 77 78
)
target_link_libraries(
    vnode
    PUBLIC os
    PUBLIC util
    PUBLIC common
    PUBLIC tfs
    PUBLIC wal
    PUBLIC qworker
S
Shengliang Guan 已提交
79
    PUBLIC sync
H
Hongze Cheng 已提交
80 81
    PUBLIC executor
    PUBLIC scheduler
H
Hongze Cheng 已提交
82
    PUBLIC tdb
L
Liu Jicong 已提交
83
    #PUBLIC bdb
dengyihao's avatar
dengyihao 已提交
84
    #PUBLIC scalar
H
Hongze Cheng 已提交
85 86
    PUBLIC transport
    PUBLIC stream
dengyihao's avatar
dengyihao 已提交
87
    PUBLIC index
H
Hongze Cheng 已提交
88
)
H
Hongze Cheng 已提交
89
target_compile_definitions(vnode PUBLIC -DMETA_REFACT)
dengyihao's avatar
dengyihao 已提交
90 91 92
if (${BUILD_WITH_INVERTEDINDEX})
  add_definitions(-DUSE_INVERTED_INDEX) 
endif(${BUILD_WITH_INVERTEDINDEX})
H
Hongze Cheng 已提交
93
if(${BUILD_TEST})
C
Cary Xu 已提交
94
    add_subdirectory(test)
H
Hongze Cheng 已提交
95
endif(${BUILD_TEST})
dengyihao's avatar
dengyihao 已提交
96 97