CMakeLists.txt 509 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
add_executable(dnode_test_vgroup "")

target_sources(dnode_test_vgroup
    PRIVATE
    "vgroup.cpp"
    "../sut/deploy.cpp"
)

target_link_libraries(
    dnode_test_vgroup
    PUBLIC dnode
    PUBLIC util
    PUBLIC os
    PUBLIC gtest_main
)

target_include_directories(dnode_test_vgroup
    PUBLIC
    "${CMAKE_SOURCE_DIR}/include/server/dnode/mgmt"
    "${CMAKE_CURRENT_SOURCE_DIR}/../../inc"
    "${CMAKE_CURRENT_SOURCE_DIR}/../sut"
)

add_test(
    NAME dnode_test_vgroup
    COMMAND dnode_test_vgroup
)