CMakeLists.txt 378 字节
Newer Older
H
refact  
Hongze Cheng 已提交
1
aux_source_directory(src META_SRC)
H
refact  
Hongze Cheng 已提交
2
add_library(meta STATIC ${META_SRC})
H
refact  
Hongze Cheng 已提交
3 4 5 6
target_include_directories(
    meta
    PUBLIC "${CMAKE_SOURCE_DIR}/include/server/vnode/meta"
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
H
refact  
Hongze Cheng 已提交
7 8 9 10
)
target_link_libraries(
    meta
    PUBLIC common
H
refact  
Hongze Cheng 已提交
11 12 13
)
target_link_libraries(meta PUBLIC rocksdb)

H
Hongze Cheng 已提交
14 15 16
if(${BUILD_TEST})
    add_subdirectory(test)
endif(${BUILD_TEST})