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

# test
if(${BUILD_TEST})
    add_subdirectory(test)
endif(${BUILD_TEST})