CMakeLists.txt 451 字节
Newer Older
H
refact  
Hongze Cheng 已提交
1 2 3 4
aux_source_directory(src VNODE_SRC)
add_library(vnode STATIC ${VNODE_SRC})
target_include_directories(
    vnode
S
Shengliang Guan 已提交
5
    PUBLIC "${CMAKE_SOURCE_DIR}/include/dnode/vnode"
H
refact  
Hongze Cheng 已提交
6 7 8 9
    private "${CMAKE_CURRENT_SOURCE_DIR}/inc"
)
target_link_libraries(
    vnode
H
save  
Hongze Cheng 已提交
10
    PUBLIC os
H
refact  
Hongze Cheng 已提交
11 12 13 14 15 16 17 18 19 20 21
    PUBLIC transport
    PUBLIC meta
    PUBLIC tq
    PUBLIC tsdb
    PUBLIC wal
    PUBLIC sync
    PUBLIC cjson
)

# test
if(${BUILD_TEST})
H
Hongze Cheng 已提交
22
    add_subdirectory(test)
H
refact  
Hongze Cheng 已提交
23
endif(${BUILD_TEST})