Fix Qt6 compatibility issues and exclude tests from release build
- tests/CMakeLists.txt: Wrap migration_tests in RELEASE_BUILD conditional - LogViewModels.cpp: Change BackgroundColorRole to BackgroundRole for Qt6 - LogViewField.hpp/cpp: Add m_logger member variable - LogViewInjectionThread.hpp/cpp: Add m_logger member variable - LogViewGui.hpp/cpp: Add m_logger member variable, fix QString::split() usage - LogViewTetraTelegramsParser.hpp: Add m_logger, change QStringRef to QStringView - LogViewTelegramEdit.hpp: Fix QModelIndex include path (QtGui→QtCore) - LogViewModels.hpp: Fix QAbstractTableModel include path (QtGui→QtCore) - PrtCnv/CMakeLists.txt: Add CMAKE_CURRENT_BINARY_DIR for export header, exclude LastTest from release - CoPrtCnv/CMakeLists.txt: Add PrtCnv include paths for prtcnvlib_export.h - Lts/Common/CodeGen/CMakeLists.txt: Add CMAKE_CURRENT_BINARY_DIR for export header - Lts/Proxies/TrainingAreaBase/Plugins/CMakeLists.txt: Exclude WlsTetra from release scope Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
15 files changed
+31
-12
No files matched your search
@@ -209,6 +209,8 @@ if(BUILD_TESTING)
|
||||
return()
|
||||
endif()
|
||||
|
||||
# Skip tests in release scope builds
|
||||
if(NOT RELEASE_BUILD)
|
||||
add_executable(migration_tests ${EXISTING_SOURCES})
|
||||
|
||||
# FLM/FLT tests include build-tree generated headers (flm_[dtc|ftc|enums],
|
||||
@@ -457,6 +459,7 @@ endif()
|
||||
gtest_discover_tests(migration_tests)
|
||||
|
||||
message(STATUS "Migration tests enabled: ${EXISTING_SOURCES}")
|
||||
endif() # NOT RELEASE_BUILD
|
||||
else()
|
||||
message(WARNING "No migration test sources found in ${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
endif()
|
||||
|
||||
Reference in new issue
Block a user