CMakeLists.txt 478 字节
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
target_link_libraries(
    dnode
    PUBLIC cjson
    PUBLIC mnode
    PUBLIC vnode
S
Shengliang Guan 已提交
8 9 10
    PUBLIC qnode
    PUBLIC snode
    PUBLIC bnode
S
Shengliang Guan 已提交
11 12 13
    PUBLIC wal
    PUBLIC sync
    PUBLIC taos
S
Shengliang Guan 已提交
14
    PUBLIC tfs
S
Shengliang Guan 已提交
15 16 17 18
)
target_include_directories(
    dnode
    PUBLIC "${CMAKE_SOURCE_DIR}/include/dnode/mgmt"
S
Shengliang Guan 已提交
19
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
S
Shengliang Guan 已提交
20
)
S
Shengliang Guan 已提交
21 22 23 24

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