CMakeLists.txt 764 字节
Newer Older
1 2 3 4 5
add_executable(transTest1 "")
target_sources(transTest1
    PRIVATE
    "${CMAKE_CURRENT_SOURCE_DIR}/trans1.cpp"
)
S
Shengliang Guan 已提交
6
target_link_libraries(
7
    transTest1
S
Shengliang Guan 已提交
8 9
    PUBLIC sut
)
10 11 12 13 14 15 16 17 18
target_include_directories(
    transTest1
    PUBLIC "${TD_SOURCE_DIR}/include/dnode/mnode"
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/../../inc"
)
add_test(
    NAME transTest1
    COMMAND transTest1
)
S
Shengliang Guan 已提交
19

20 21 22 23 24 25 26 27 28 29 30 31 32 33
add_executable(transTest2 "")
target_sources(transTest2
    PRIVATE
    "${CMAKE_CURRENT_SOURCE_DIR}/trans2.cpp"
)
target_link_libraries(
    transTest2
    PUBLIC dnode mnode gtest_main
)
target_include_directories(
    transTest2
    PUBLIC "${TD_SOURCE_DIR}/include/dnode/mnode"
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/../../inc"
)
S
Shengliang Guan 已提交
34
add_test(
35 36
    NAME transTest2
    COMMAND transTest2
S
Shengliang Guan 已提交
37
)