CMakeLists.txt 1.1 KB
Newer Older
S
Shengliang Guan 已提交
1 2 3 4 5 6
aux_source_directory(dm/src DNODE_SRC)
aux_source_directory(qm/src DNODE_SRC)
aux_source_directory(bm/src DNODE_SRC)
aux_source_directory(sm/src DNODE_SRC)
aux_source_directory(vm/src DNODE_SRC)
aux_source_directory(mm/src DNODE_SRC)
S
Shengliang Guan 已提交
7
aux_source_directory(main/src DNODE_SRC)
S
Shengliang Guan 已提交
8 9 10 11 12 13 14
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"
S
Shengliang Guan 已提交
15 16 17 18 19 20
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/dm/inc"
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/qm/inc"
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/bm/inc"
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/sm/inc"
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/vm/inc"
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/mm/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})