42 lines
1.8 KiB
CMake
42 lines
1.8 KiB
CMake
###############################################################################
|
|
# gtest_addr
|
|
###############################################################################
|
|
|
|
add_executable(gtest_addr test_addr.cpp)
|
|
target_include_directories(gtest_addr PUBLIC ${CMAKE_SOURCE_DIR}/common/include)
|
|
target_link_libraries(gtest_addr common gtest)
|
|
|
|
###############################################################################
|
|
# gtest_cmsg
|
|
###############################################################################
|
|
|
|
add_executable(gtest_cmsg test_cmsg.cpp)
|
|
target_include_directories(gtest_cmsg PUBLIC ${CMAKE_SOURCE_DIR}/common/include)
|
|
target_link_libraries(gtest_cmsg common gtest)
|
|
|
|
###############################################################################
|
|
# gtest_session_table
|
|
###############################################################################
|
|
|
|
add_executable(gtest_session_table test_session_table.cpp)
|
|
target_include_directories(gtest_session_table PUBLIC ${CMAKE_SOURCE_DIR}/common/include)
|
|
target_link_libraries(gtest_session_table common gtest)
|
|
|
|
###############################################################################
|
|
# gtest_raw_packet
|
|
###############################################################################
|
|
|
|
add_executable(gtest_raw_packet test_raw_packet.cpp)
|
|
target_include_directories(gtest_raw_packet PUBLIC ${CMAKE_SOURCE_DIR}/common/include)
|
|
target_link_libraries(gtest_raw_packet common gtest)
|
|
|
|
###############################################################################
|
|
# gtest_discover_tests
|
|
###############################################################################
|
|
|
|
include(GoogleTest)
|
|
gtest_discover_tests(gtest_addr)
|
|
gtest_discover_tests(gtest_cmsg)
|
|
gtest_discover_tests(gtest_session_table)
|
|
gtest_discover_tests(gtest_raw_packet)
|