CMakeLists.txt 420 字节
Newer Older
S
Shengliang Guan 已提交
1 2 3 4 5
aux_source_directory(src MNODE_SRC)
add_library(mnode ${MNODE_SRC})
target_include_directories(
    mnode
    PUBLIC "${CMAKE_SOURCE_DIR}/include/dnode/mnode"
S
Shengliang Guan 已提交
6
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
S
Shengliang Guan 已提交
7 8 9
)
target_link_libraries(
    mnode
L
Liu Jicong 已提交
10
    PRIVATE scheduler
S
Shengliang Guan 已提交
11
    PRIVATE sdb
S
Shengliang Guan 已提交
12
    PRIVATE wal
S
Shengliang Guan 已提交
13 14
    PRIVATE transport
    PRIVATE cjson
S
Shengliang Guan 已提交
15
    PRIVATE sync
16 17 18 19
)

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