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

H
Hongze Cheng 已提交
19 20 21 22 23 24 25 26 27 28 29 30
    # meta
    # "src/meta/metaBDBImpl.c"
    "src/meta/metaCache.c"
    "src/meta/metaCfg.c"
    "src/meta/metaIdx.c"
    "src/meta/metaMain.c"
    "src/meta/metaQuery.c"
    "src/meta/metaTable.c"
    "src/meta/metaTbCfg.c"
    "src/meta/metaTbTag.c"
    "src/meta/metaTbUid.c"
    "src/meta/metaTDBImpl.c"
H
Hongze Cheng 已提交
31

H
Hongze Cheng 已提交
32
    # tsdb
H
Hongze Cheng 已提交
33
    # "src/tsdb/tsdbBDBImpl.c"
C
Cary Xu 已提交
34
    "src/tsdb/tsdbTDBImpl.c"
H
Hongze Cheng 已提交
35 36 37 38 39 40 41 42 43 44
    "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 已提交
45
    "src/tsdb/tsdbSma.c"
H
Hongze Cheng 已提交
46
    "src/tsdb/tsdbWrite.c"
H
Hongze Cheng 已提交
47

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

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