CMakeLists.txt 650 字节
Newer Older
S
Shengliang Guan 已提交
1
aux_source_directory(src MNODE_SRC)
S
Shengliang Guan 已提交
2 3 4 5 6 7 8
IF (TD_PRIVILEGE)
  ADD_DEFINITIONS(-D_PRIVILEGE)
ENDIF ()
IF (TD_PRIVILEGE)
  LIST(APPEND MNODE_SRC ${TD_ENTERPRISE_DIR}/src/plugins/privilege/src/privilege.c)
ENDIF ()

S
monitor  
Shengliang Guan 已提交
9
add_library(mnode STATIC ${MNODE_SRC})
S
Shengliang Guan 已提交
10 11
target_include_directories(
    mnode
wafwerar's avatar
wafwerar 已提交
12
    PUBLIC "${TD_SOURCE_DIR}/include/dnode/mnode"
S
Shengliang Guan 已提交
13
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
S
Shengliang Guan 已提交
14 15
)
target_link_libraries(
16
    mnode scheduler sdb wal transport cjson sync monitor executor qworker stream parser
17
)
wafwerar's avatar
wafwerar 已提交
18 19
IF (TD_GRANT)
  TARGET_LINK_LIBRARIES(mnode grant)
wafwerar's avatar
wafwerar 已提交
20
  ADD_DEFINITIONS(-D_GRANT)
wafwerar's avatar
wafwerar 已提交
21 22
ENDIF ()

23 24
if(${BUILD_TEST})
    add_subdirectory(test)
L
Liu Jicong 已提交
25
endif(${BUILD_TEST})