CMakeLists.txt 412 字节
Newer Older
S
Shengliang Guan 已提交
1
aux_source_directory(src DNODE_SRC)
S
Shengliang Guan 已提交
2
add_library(dnode STATIC ${DNODE_SRC})
S
Shengliang Guan 已提交
3 4 5 6 7 8 9 10 11 12 13 14
target_link_libraries(
    dnode
    PUBLIC cjson
    PUBLIC mnode
    PUBLIC vnode
    PUBLIC wal
    PUBLIC sync
    PUBLIC taos
)
target_include_directories(
    dnode
    PUBLIC "${CMAKE_SOURCE_DIR}/include/dnode/mgmt"
S
Shengliang Guan 已提交
15
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
S
Shengliang Guan 已提交
16
)
S
Shengliang Guan 已提交
17 18 19 20

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