CMakeLists.txt 503 字节
Newer Older
S
Shengliang Guan 已提交
1
aux_source_directory(src MNODE_SRC)
S
monitor  
Shengliang Guan 已提交
2
add_library(mnode STATIC ${MNODE_SRC})
S
Shengliang Guan 已提交
3 4
target_include_directories(
    mnode
wafwerar's avatar
wafwerar 已提交
5
    PUBLIC "${TD_SOURCE_DIR}/include/dnode/mnode"
S
Shengliang Guan 已提交
6
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
S
Shengliang Guan 已提交
7 8
)
target_link_libraries(
9
    mnode scheduler sdb wal transport cjson sync monitor executor qworker stream parser
10 11
)

wafwerar's avatar
wafwerar 已提交
12 13 14
IF (TD_GRANT)
  TARGET_LINK_LIBRARIES(mnode grant)
ENDIF ()
wafwerar's avatar
wafwerar 已提交
15 16
IF (TD_GRANT)
  ADD_DEFINITIONS(-D_GRANT)
wafwerar's avatar
wafwerar 已提交
17 18
ENDIF ()

19 20
if(${BUILD_TEST})
    add_subdirectory(test)
L
Liu Jicong 已提交
21
endif(${BUILD_TEST})