# Unit tests for PrtCnv. # PrtCnvLib is built with hidden visibility and PrtCnvMember carries no export # macro, so the classes under test are compiled into the test executable rather # than widening the library's public ABI for the tests' sake. # GoogleTest is resolved once in the top-level CMakeLists.txt. add_executable(PrtCnvTests ${CMAKE_CURRENT_SOURCE_DIR}/../../unittest_main.cpp PrtCnvMemberTest.cpp PrtCnvStoredTelegramTest.cpp ${CMAKE_CURRENT_SOURCE_DIR}/../PrtCnvMember.cpp ) target_include_directories(PrtCnvTests PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/../.. ) target_link_libraries(PrtCnvTests PRIVATE CoPrtCnv Qt6::Core GTest::gtest ) include(GoogleTest) gtest_discover_tests(PrtCnvTests)