CMakeLists.txt 1.1 KB
Newer Older
S
Shengliang Guan 已提交
1
aux_source_directory(dnode/src DNODE_SRC)
S
Shengliang Guan 已提交
2 3 4 5 6
aux_source_directory(qnode/src DNODE_SRC)
aux_source_directory(bnode/src DNODE_SRC)
aux_source_directory(snode/src DNODE_SRC)
aux_source_directory(vnode/src DNODE_SRC)
aux_source_directory(mnode/src DNODE_SRC)
S
Shengliang Guan 已提交
7
aux_source_directory(main/src DNODE_SRC)
S
Shengliang Guan 已提交
8 9 10 11 12 13 14 15
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}/dnode/inc"
S
Shengliang Guan 已提交
16 17 18 19 20
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/qnode/inc"
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/bnode/inc"
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/snode/inc"
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/vnode/inc"
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/mnode/inc"
S
Shengliang Guan 已提交
21
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/main/inc"
S
Shengliang Guan 已提交
22 23
)

S
Shengliang Guan 已提交
24 25 26 27 28 29 30
aux_source_directory(main/exe EXEC_SRC)
add_executable(taosd ${EXEC_SRC})
target_include_directories(
    taosd
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/main/inc"
)
target_link_libraries(taosd dnode)
S
Shengliang Guan 已提交
31

S
Shengliang Guan 已提交
32 33 34
if(${BUILD_TEST})
    add_subdirectory(test)
endif(${BUILD_TEST})