CMakeLists.txt 539 字节
Newer Older
H
refact  
Hongze Cheng 已提交
1
aux_source_directory(src TSDB_SRC)
H
more  
Hongze Cheng 已提交
2 3 4 5 6 7 8 9 10 11 12 13 14 15
if(0)
    add_library(tsdb ${TSDB_SRC})
else(0)
    add_library(tsdb "")
    target_sources(tsdb
        PRIVATE
        "src/tsdbCommit.c"
        "src/tsdbMain.c"
        "src/tsdbMemTable.c"
        "src/tsdbOptions.c"
        "src/tsdbWrite.c"
    )
endif(0)

H
refact  
Hongze Cheng 已提交
16 17
target_include_directories(
    tsdb
S
Shengliang Guan 已提交
18
    PUBLIC "${CMAKE_SOURCE_DIR}/include/dnode/vnode/tsdb"
H
refact  
Hongze Cheng 已提交
19
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
H
refact  
Hongze Cheng 已提交
20
)
H
more  
Hongze Cheng 已提交
21

S
Shengliang Guan 已提交
22
target_link_libraries(
H
refact  
Hongze Cheng 已提交
23
    tsdb
S
Shengliang Guan 已提交
24
    PUBLIC os
H
more  
Hongze Cheng 已提交
25 26 27
    PUBLIC util
    PUBLIC common
    PUBLIC tkv
H
refact  
Hongze Cheng 已提交
28
)