Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/TetraIF/PrtCnv/unittest/CMakeLists.txt
T
2026-09-12 13:54:34 +02:00

27 lines
754 B
CMake

# 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)