CMakeLists.txt 496 字节
Newer Older
S
Shengliang Guan 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14
aux_source_directory(src DNODE_SRC)
aux_source_directory(dnode/src DNODE_SRC)

add_library(dnode STATIC ${DNODE_SRC})
target_link_libraries(
    dnode cjson mnode vnode qnode snode bnode wal sync taos tfs monitor
)
target_include_directories(
    dnode
    PUBLIC "${CMAKE_SOURCE_DIR}/include/dnode/mgmt"
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/dnode/inc"
)

S
Shengliang Guan 已提交
15
add_subdirectory(exec)
S
Shengliang Guan 已提交
16

S
Shengliang Guan 已提交
17 18 19
if(${BUILD_TEST})
    add_subdirectory(test)
endif(${BUILD_TEST})