In order to migrate to Qt6 all options for KF6 were added:

a) using a system provided KF6
b) downloading and compiling KF6
c) using the vendored-in re-creation of the functionality

The behaviour for both Qt5 and Qt6 is steered with the same two variables which were renamed to become version agnostic:
a) BUILD_WITH_KF=ON BUILD_KF=OFF
b) BUILD_WITH_KF=ON BUILD_KF=ON
c) BUILD_WITH_KF=OFF

The version is automatically derived from the chosen Qt major version.
This commit is contained in:
Andre Rummler
2026-08-10 17:57:39 +02:00
parent 10cc162c4e
commit c14d6a6dd6
20 changed files with 104 additions and 68 deletions
+1 -1
View File
@@ -456,7 +456,7 @@ jobs:
-DCMAKE_PREFIX_PATH=/ucrt64 \ -DCMAKE_PREFIX_PATH=/ucrt64 \
-DQt6_DIR=/ucrt64/lib/cmake/Qt6 \ -DQt6_DIR=/ucrt64/lib/cmake/Qt6 \
-DQT_VERSION_MAJOR=6 \ -DQT_VERSION_MAJOR=6 \
-DBUILD_WITH_KF5=OFF \ -DBUILD_WITH_KF=OFF \
-DPACKAGE_TESTS=OFF \ -DPACKAGE_TESTS=OFF \
-DCMAKE_POLICY_DEFAULT_CMP0077=NEW \ -DCMAKE_POLICY_DEFAULT_CMP0077=NEW \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \ -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
+41 -25
View File
@@ -48,19 +48,11 @@ endif()
# INTERFACE_QT_MAJOR_VERSION mismatch at generate time. # INTERFACE_QT_MAJOR_VERSION mismatch at generate time.
set(QT_DEFAULT_MAJOR_VERSION ${QT_VERSION_MAJOR} CACHE STRING "Qt version to use (5 or 6)" FORCE) set(QT_DEFAULT_MAJOR_VERSION ${QT_VERSION_MAJOR} CACHE STRING "Qt version to use (5 or 6)" FORCE)
# Add sub directories
option(PACKAGE_TESTS "Build the tests" ON)
if(PACKAGE_TESTS)
message("Add sub directory tests")
add_subdirectory(tests)
endif()
include(cmake/paths_compilation_installation.cmake) include(cmake/paths_compilation_installation.cmake)
include(cmake/start_options.cmake) include(cmake/start_options.cmake)
include(cmake/developer_options.cmake) include(cmake/developer_options.cmake)
include(cmake/git_update_submodules.cmake) include(cmake/git_update_submodules.cmake)
include(cmake/git_last_commit_sha.cmake) include(cmake/git_last_commit_sha.cmake)
include(cmake/fetch_kdeaddons.cmake)
include(cmake/fetch_singleapplication.cmake) include(cmake/fetch_singleapplication.cmake)
include(cmake/fetch_pugixml.cmake) include(cmake/fetch_pugixml.cmake)
include(cmake/qet_compilation_vars.cmake) include(cmake/qet_compilation_vars.cmake)
@@ -100,25 +92,19 @@ endif()
set(CMAKE_AUTOUIC_SEARCH_PATHS ${QET_DIR}/sources/ui) set(CMAKE_AUTOUIC_SEARCH_PATHS ${QET_DIR}/sources/ui)
# The default build only compiles the tracked .ts files to .qm (lrelease).
# Refreshing the .ts from the sources (lupdate) is a developer action behind
# the explicit "update_translations" target below: running lupdate on every
# build rewrote tracked files as a side effect, and under high parallelism
# lupdate rewriting a .ts while lrelease read the same file made the build
# fail with "Premature end of document".
set_source_files_properties(${TS_FILES} PROPERTIES OUTPUT_LOCATION "${QET_DIR}/lang")
if(QT_VERSION_MAJOR EQUAL 6) if(QT_VERSION_MAJOR EQUAL 6)
qt6_add_translation(QM_FILES ${TS_FILES}) set(KF_MAJOR_VERSION 6)
else() else()
qt5_add_translation(QM_FILES ${TS_FILES}) set(KF_MAJOR_VERSION 5)
endif() endif()
include(cmake/fetch_kdeaddons.cmake)
add_custom_target(update_translations # Add sub directories
COMMAND $<TARGET_FILE:Qt${QT_VERSION_MAJOR}::lupdate> ${CMAKE_SOURCE_DIR}/sources -ts ${TS_FILES} option(PACKAGE_TESTS "Build the tests" ON)
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} if(PACKAGE_TESTS)
COMMENT "Updating .ts files from sources/ (lupdate) - developer target, run explicitly" message("Add sub directory tests")
VERBATIM add_subdirectory(tests)
) endif()
# als laatse # als laatse
include(cmake/define_definitions.cmake) include(cmake/define_definitions.cmake)
@@ -145,6 +131,36 @@ else()
) )
endif() endif()
# The default build only compiles the tracked .ts files to .qm (lrelease).
# Refreshing the .ts from the sources (lupdate) is a developer action behind
# the explicit "update_translations" target below: running lupdate on every
# build rewrote tracked files as a side effect, and under high parallelism
# lupdate rewriting a .ts while lrelease read the same file made the build
# fail with "Premature end of document".
if(QT_VERSION_MAJOR EQUAL 6)
qt_add_lrelease(
TARGETS ${PROJECT_NAME}
TS_FILES ${TS_FILES}
QM_OUTPUT_DIRECTORY "${QET_DIR}/lang"
QM_FILES_OUTPUT_VARIABLE QM_FILES
)
qt_add_lupdate(
TS_FILES ${TS_FILES}
SOURCE_TARGETS ${PROJECT_NAME}
LUPDATE_TARGET update_translations
COMMENT "Updating .ts files from sources/ (lupdate) - developer target, run explicitly"
)
else()
qt5_add_translation(QM_FILES ${TS_FILES})
set_source_files_properties(${TS_FILES} PROPERTIES OUTPUT_LOCATION "${QET_DIR}/lang")
add_custom_target(update_translations
COMMAND $<TARGET_FILE:Qt${QT_VERSION_MAJOR}::lupdate> ${CMAKE_SOURCE_DIR}/sources -ts ${TS_FILES}
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
COMMENT "Updating .ts files from sources/ (lupdate) - developer target, run explicitly"
VERBATIM
)
endif()
# Optional precompiled headers -- see QET_ENABLE_PCH in # Optional precompiled headers -- see QET_ENABLE_PCH in
# cmake/developer_options.cmake for what this trades away. # cmake/developer_options.cmake for what this trades away.
# #
@@ -180,7 +196,7 @@ target_link_libraries(
pugixml::pugixml pugixml::pugixml
SingleApplication::SingleApplication SingleApplication::SingleApplication
SQLite3::SQLite3 SQLite3::SQLite3
${KF5_PRIVATE_LIBRARIES} ${KF_PRIVATE_LIBRARIES}
${QET_PRIVATE_LIBRARIES} ${QET_PRIVATE_LIBRARIES}
) )
@@ -221,7 +237,7 @@ target_include_directories(
${QET_DIR}/sources/svg ${QET_DIR}/sources/svg
) )
if(NOT BUILD_WITH_KF5) if(NOT BUILD_WITH_KF)
target_include_directories( target_include_directories(
${PROJECT_NAME} ${PROJECT_NAME}
PRIVATE PRIVATE
+2 -2
View File
@@ -40,8 +40,8 @@ git clone --recursive https://github.com/qelectrotech/qelectrotech-source-mirror
Here are the technical choices made for the software development: Here are the technical choices made for the software development:
* Integrated development environment: [Qt Framework](https://www.qt.io/ide/) * Integrated development environment: [Qt Framework](https://www.qt.io/ide/)
* Libraries: Qt 5.x * Libraries: Qt 5.x / Qt 6.x
* [KF5 Framework](https://github.com/KDE) * [KF5/6 Framework](https://github.com/KDE)
[Cmake](https://cmake.org/install/) [Cmake](https://cmake.org/install/)
[kcoreaddons](https://github.com/KDE/kcoreaddons/tree/kf5) [kcoreaddons](https://github.com/KDE/kcoreaddons/tree/kf5)
[kwidgetsaddons](https://github.com/KDE/kwidgetsaddons/tree/kf5). [kwidgetsaddons](https://github.com/KDE/kwidgetsaddons/tree/kf5).
+3 -3
View File
@@ -62,10 +62,10 @@ message("PROJECT_SOURCE_DIR :" ${PROJECT_SOURCE_DIR})
message("QET_DIR :" ${QET_DIR}) message("QET_DIR :" ${QET_DIR})
message("GIT_COMMIT_SHA :" ${GIT_COMMIT_SHA}) message("GIT_COMMIT_SHA :" ${GIT_COMMIT_SHA})
if(BUILD_WITH_KF5) if(BUILD_WITH_KF)
message("KF5_GIT_TAG :" ${KF5_GIT_TAG}) message("KF_GIT_TAG :" ${KF5_GIT_TAG})
else() else()
add_definitions(-DBUILD_WITHOUT_KF5) add_definitions(-DBUILD_WITHOUT_KF)
endif() endif()
message("QET_COMPONENTS :" ${QET_COMPONENTS}) message("QET_COMPONENTS :" ${QET_COMPONENTS})
message("QT_VERSION_MAJOR :" ${QT_VERSION_MAJOR}) message("QT_VERSION_MAJOR :" ${QT_VERSION_MAJOR})
+5 -2
View File
@@ -31,8 +31,11 @@ add_definitions(-DQT_MESSAGELOGCONTEXT)
# In order to do so, uncomment the following line. # In order to do so, uncomment the following line.
#add_definitions(-DTODO_LIST) #add_definitions(-DTODO_LIST)
# Build with KF5 # Build with KDE Frameworks. The major version (KF5/KF6) is derived
option(BUILD_WITH_KF5 "Build with KF5" ON) # automatically from QT_VERSION_MAJOR -- KDE Frameworks deliberately
# mirrors Qt's own major version numbering, so there is no independent
# choice to make here. See cmake/fetch_kdeaddons.cmake.
option(BUILD_WITH_KF "Build with KDE Frameworks" ON)
# Precompiled headers for the Qt umbrella headers. # Precompiled headers for the Qt umbrella headers.
# #
+30 -13
View File
@@ -16,17 +16,24 @@
message(" - fetch_kdeaddons") message(" - fetch_kdeaddons")
if(BUILD_WITH_KF5) # TODO remove path as soon as Qt5 gets retired
if(BUILD_WITH_KF)
Include(FetchContent) Include(FetchContent)
option(BUILD_KF5 "Build KF5 libraries, use system ones otherwise" YES) option(BUILD_KF "Build KF5 libraries, use system ones otherwise" YES)
if(BUILD_KF5) if(BUILD_KF)
if(NOT DEFINED KF5_GIT_TAG) if(KF_MAJOR_VERSION EQUAL 5)
if(NOT DEFINED KF_GIT_TAG)
#https://qelectrotech.org/forum/viewtopic.php?pid=13924#p13924 #https://qelectrotech.org/forum/viewtopic.php?pid=13924#p13924
set(KF5_GIT_TAG v5.77.0) set(KF_GIT_TAG v5.77.0)
endif() endif()
else()
if(NOT DEFINED KF_GIT_TAG)
set(KF_GIT_TAG v6.10.0)
endif()
endif()
# Fix stop the run autotests of kcoreaddons # Fix stop the run autotests of kcoreaddons
# see # see
@@ -38,30 +45,40 @@ if(BUILD_WITH_KF5)
# https://qelectrotech.org/forum/viewtopic.php?pid=13929#p13929 # https://qelectrotech.org/forum/viewtopic.php?pid=13929#p13929
set(KDE_SKIP_TEST_SETTINGS "TRUE") set(KDE_SKIP_TEST_SETTINGS "TRUE")
set(BUILD_TESTING "0") set(BUILD_TESTING "0")
# QElectroTech is a plain QtWidgets application with no QML anywhere in
# it; these disable optional features of the fetched KF modules that
# would otherwise pull in extra Qt6 components (e.g. Qt6Qml) we don't
# have and don't need.
set(BUILD_DESIGNERPLUGIN OFF)
set(KCOREADDONS_USE_QML OFF)
set(BUILD_QCH OFF)
set(BUILD_SHARED_LIBS OFF)
FetchContent_Declare( FetchContent_Declare(
ecm ecm
GIT_REPOSITORY https://invent.kde.org/frameworks/extra-cmake-modules.git GIT_REPOSITORY https://invent.kde.org/frameworks/extra-cmake-modules.git
GIT_TAG ${KF5_GIT_TAG}) GIT_TAG ${KF_GIT_TAG})
FetchContent_MakeAvailable(ecm) FetchContent_MakeAvailable(ecm)
FetchContent_Declare( FetchContent_Declare(
kcoreaddons kcoreaddons
GIT_REPOSITORY https://invent.kde.org/frameworks/kcoreaddons.git GIT_REPOSITORY https://invent.kde.org/frameworks/kcoreaddons.git
GIT_TAG ${KF5_GIT_TAG}) GIT_TAG ${KF_GIT_TAG})
FetchContent_MakeAvailable(kcoreaddons) FetchContent_MakeAvailable(kcoreaddons)
FetchContent_Declare( FetchContent_Declare(
kwidgetsaddons kwidgetsaddons
GIT_REPOSITORY https://invent.kde.org/frameworks/kwidgetsaddons.git GIT_REPOSITORY https://invent.kde.org/frameworks/kwidgetsaddons.git
GIT_TAG ${KF5_GIT_TAG}) GIT_TAG ${KF_GIT_TAG})
FetchContent_MakeAvailable(kwidgetsaddons) FetchContent_MakeAvailable(kwidgetsaddons)
else() else()
find_package(KF5CoreAddons REQUIRED) find_package(KF${KF_MAJOR_VERSION}CoreAddons REQUIRED)
find_package(KF5WidgetsAddons REQUIRED) find_package(KF${KF_MAJOR_VERSION}WidgetsAddons REQUIRED)
endif() endif()
set(KF5_PRIVATE_LIBRARIES set(KF_PRIVATE_LIBRARIES
KF5::WidgetsAddons KF${KF_MAJOR_VERSION}::WidgetsAddons
KF5::CoreAddons KF${KF_MAJOR_VERSION}::CoreAddons
) )
endif() endif()
+1 -1
View File
@@ -801,7 +801,7 @@ set(QET_SRC_FILES
${QET_DIR}/sources/xml/terminalstriplayoutpatternxml.h ${QET_DIR}/sources/xml/terminalstriplayoutpatternxml.h
) )
if(NOT BUILD_WITH_KF5) if(NOT BUILD_WITH_KF)
list(APPEND QET_SRC_FILES list(APPEND QET_SRC_FILES
${QET_DIR}/sources/ui/nokde/kautosavefile.cpp ${QET_DIR}/sources/ui/nokde/kautosavefile.cpp
${QET_DIR}/sources/ui/nokde/kautosavefile.h ${QET_DIR}/sources/ui/nokde/kautosavefile.h
+2 -2
View File
@@ -141,7 +141,7 @@ void DynamicTextFieldEditor::updateForm()
ui -> m_size_sb -> setValue(m_text_field.data() -> font().pointSize()); ui -> m_size_sb -> setValue(m_text_field.data() -> font().pointSize());
ui->m_keep_visual_rotation_cb->setChecked(m_text_field.data()->keepVisualRotation()); ui->m_keep_visual_rotation_cb->setChecked(m_text_field.data()->keepVisualRotation());
ui->m_rotation_point_center_cb->setChecked(m_text_field.data()->rotationPointCenter()); ui->m_rotation_point_center_cb->setChecked(m_text_field.data()->rotationPointCenter());
#ifdef BUILD_WITHOUT_KF5 #ifdef BUILD_WITHOUT_KF
#else #else
m_color_kpb -> setColor(m_text_field.data() -> color()); m_color_kpb -> setColor(m_text_field.data() -> color());
#endif #endif
@@ -170,7 +170,7 @@ void DynamicTextFieldEditor::updateForm()
void DynamicTextFieldEditor::setupWidget() void DynamicTextFieldEditor::setupWidget()
{ {
#ifdef BUILD_WITHOUT_KF5 #ifdef BUILD_WITHOUT_KF
#else #else
m_color_kpb = new KColorButton(this); m_color_kpb = new KColorButton(this);
m_color_kpb->setObjectName(QString::fromUtf8("m_color_kpb")); m_color_kpb->setObjectName(QString::fromUtf8("m_color_kpb"));
+2 -2
View File
@@ -21,7 +21,7 @@
#include "../elementitemeditor.h" #include "../elementitemeditor.h"
#include "../graphicspart/partdynamictextfield.h" #include "../graphicspart/partdynamictextfield.h"
#ifdef BUILD_WITHOUT_KF5 #ifdef BUILD_WITHOUT_KF
#else #else
# include <KColorButton> # include <KColorButton>
#endif #endif
@@ -79,7 +79,7 @@ class DynamicTextFieldEditor : public ElementItemEditor {
QList<PartDynamicTextField*> m_parts; QList<PartDynamicTextField*> m_parts;
QList<QMetaObject::Connection> m_connection_list; QList<QMetaObject::Connection> m_connection_list;
#ifdef BUILD_WITHOUT_KF5 #ifdef BUILD_WITHOUT_KF
#else #else
KColorButton* m_color_kpb = nullptr; KColorButton* m_color_kpb = nullptr;
#endif #endif
+3 -3
View File
@@ -40,7 +40,7 @@ TerminalEditor::TerminalEditor(QETElementEditor *editor, QWidget *parent) :
{ {
ui->setupUi(this); ui->setupUi(this);
#ifdef BUILD_WITHOUT_KF5 #ifdef BUILD_WITHOUT_KF
m_color_pb = new QPushButton(this); m_color_pb = new QPushButton(this);
m_color_pb->setMinimumSize(40, 24); m_color_pb->setMinimumSize(40, 24);
connect(m_color_pb, &QPushButton::clicked, this, &TerminalEditor::labelColorClicked); connect(m_color_pb, &QPushButton::clicked, this, &TerminalEditor::labelColorClicked);
@@ -93,7 +93,7 @@ void TerminalEditor::updateForm()
ui->m_label_rotation_sb->setValue(static_cast<int>(m_part->labelRotation())); ui->m_label_rotation_sb->setValue(static_cast<int>(m_part->labelRotation()));
ui->m_label_frame_cb->setChecked(m_part->labelFrame()); ui->m_label_frame_cb->setChecked(m_part->labelFrame());
#ifdef BUILD_WITHOUT_KF5 #ifdef BUILD_WITHOUT_KF
QPixmap px(16, 16); QPixmap px(16, 16);
px.fill(m_part->labelColor()); px.fill(m_part->labelColor());
m_color_pb->setIcon(QIcon(px)); m_color_pb->setIcon(QIcon(px));
@@ -410,7 +410,7 @@ void TerminalEditor::labelColorClicked()
if (m_locked) return; if (m_locked) return;
m_locked = true; m_locked = true;
#ifdef BUILD_WITHOUT_KF5 #ifdef BUILD_WITHOUT_KF
QColor new_color = QColorDialog::getColor(m_part->labelColor(), this); QColor new_color = QColorDialog::getColor(m_part->labelColor(), this);
if (new_color.isValid() && m_part->labelColor() != new_color) { if (new_color.isValid() && m_part->labelColor() != new_color) {
auto undo = new QPropertyUndoCommand(m_part, "label_color", m_part->labelColor(), new_color); auto undo = new QPropertyUndoCommand(m_part, "label_color", m_part->labelColor(), new_color);
+2 -2
View File
@@ -21,7 +21,7 @@
#include <QWidget> #include <QWidget>
#include "../elementitemeditor.h" #include "../elementitemeditor.h"
#ifdef BUILD_WITHOUT_KF5 #ifdef BUILD_WITHOUT_KF
#include <QPushButton> #include <QPushButton>
#else #else
#include <KColorButton> #include <KColorButton>
@@ -78,7 +78,7 @@ class TerminalEditor : public ElementItemEditor
m_change_connections; m_change_connections;
PartTerminal *m_part = nullptr; PartTerminal *m_part = nullptr;
bool m_locked = false; bool m_locked = false;
#ifdef BUILD_WITHOUT_KF5 #ifdef BUILD_WITHOUT_KF
QPushButton *m_color_pb; QPushButton *m_color_pb;
#else #else
KColorButton *m_color_pb; KColorButton *m_color_pb;
+2 -2
View File
@@ -63,7 +63,7 @@ void TextEditor::updateForm()
m_rotation_sb -> setValue(m_text -> rotation()); m_rotation_sb -> setValue(m_text -> rotation());
m_size_sb -> setValue(m_text -> font().pointSize()); m_size_sb -> setValue(m_text -> font().pointSize());
m_font_pb -> setText(m_text -> font().family()); m_font_pb -> setText(m_text -> font().family());
#ifdef BUILD_WITHOUT_KF5 #ifdef BUILD_WITHOUT_KF
#else #else
m_color_pb -> setColor(m_text -> defaultTextColor()); m_color_pb -> setColor(m_text -> defaultTextColor());
#endif #endif
@@ -346,7 +346,7 @@ void TextEditor::setUpWidget(QWidget *parent)
m_line_edit->setPlaceholderText(tr("Entrer votre texte ici")); m_line_edit->setPlaceholderText(tr("Entrer votre texte ici"));
gridLayout->addWidget(m_line_edit, 0, 0, 1, 6); gridLayout->addWidget(m_line_edit, 0, 0, 1, 6);
#ifdef BUILD_WITHOUT_KF5 #ifdef BUILD_WITHOUT_KF
#else #else
m_color_pb = new KColorButton(parent); m_color_pb = new KColorButton(parent);
m_color_pb->setObjectName(QString::fromUtf8("m_color_pb")); m_color_pb->setObjectName(QString::fromUtf8("m_color_pb"));
+2 -2
View File
@@ -25,7 +25,7 @@
#include <QSpinBox> #include <QSpinBox>
#include <QLineEdit> #include <QLineEdit>
#include <QPushButton> #include <QPushButton>
#ifdef BUILD_WITHOUT_KF5 #ifdef BUILD_WITHOUT_KF
#else #else
#include <KColorButton> #include <KColorButton>
#endif #endif
@@ -65,7 +65,7 @@ class TextEditor : public ElementItemEditor {
QSpinBox *m_size_sb; QSpinBox *m_size_sb;
QLineEdit *m_line_edit; QLineEdit *m_line_edit;
QPushButton *m_font_pb; QPushButton *m_font_pb;
#ifdef BUILD_WITHOUT_KF5 #ifdef BUILD_WITHOUT_KF
#else #else
KColorButton *m_color_pb; KColorButton *m_color_pb;
#endif #endif
+1 -1
View File
@@ -50,7 +50,7 @@
#include <QFontDatabase> #include <QFontDatabase>
#include <QProcessEnvironment> #include <QProcessEnvironment>
#include <QRegularExpression> #include <QRegularExpression>
#ifdef BUILD_WITHOUT_KF5 #ifdef BUILD_WITHOUT_KF
# include "ui/nokde/kautosavefile.h" # include "ui/nokde/kautosavefile.h"
#else #else
# include <KAutoSaveFile> # include <KAutoSaveFile>
+1 -1
View File
@@ -57,7 +57,7 @@
#include <QDateTime> #include <QDateTime>
#include <QDebug> #include <QDebug>
#include <QDir> #include <QDir>
#ifdef BUILD_WITHOUT_KF5 #ifdef BUILD_WITHOUT_KF
# include "ui/nokde/kautosavefile.h" # include "ui/nokde/kautosavefile.h"
#else #else
# include <KAutoSaveFile> # include <KAutoSaveFile>
+1 -1
View File
@@ -29,7 +29,7 @@
#include "titleblock/templatescollection.h" #include "titleblock/templatescollection.h"
#include "titleblockproperties.h" #include "titleblockproperties.h"
#include "diagram.h" #include "diagram.h"
#ifdef BUILD_WITHOUT_KF5 #ifdef BUILD_WITHOUT_KF
# include "ui/nokde/kautosavefile.h" # include "ui/nokde/kautosavefile.h"
#else #else
# include <KAutoSaveFile> # include <KAutoSaveFile>
+2 -2
View File
@@ -90,7 +90,7 @@ add_executable(
${QET_DIR}/sources/borderproperties.h ${QET_DIR}/sources/borderproperties.h
) )
if(NOT BUILD_WITH_KF5) if(NOT BUILD_WITH_KF)
target_sources( target_sources(
${PROJECT_NAME} ${PROJECT_NAME}
PRIVATE PRIVATE
@@ -109,7 +109,7 @@ target_link_libraries(
PUBLIC PUBLIC
Catch2::Catch2 Catch2::Catch2
PRIVATE PRIVATE
${KF5_PRIVATE_LIBRARIES} ${KF_PRIVATE_LIBRARIES}
${QET_PRIVATE_LIBRARIES}) ${QET_PRIVATE_LIBRARIES})
if (DEFINED ENV{CATCH_INCLUDE_DIR}) if (DEFINED ENV{CATCH_INCLUDE_DIR})
+1 -1
View File
@@ -85,6 +85,6 @@ target_link_libraries(
PUBLIC PUBLIC
gmock gmock_main gmock gmock_main
PRIVATE PRIVATE
${KF5_PRIVATE_LIBRARIES} ${KF_PRIVATE_LIBRARIES}
${QET_PRIVATE_LIBRARIES}) ${QET_PRIVATE_LIBRARIES})
+1 -1
View File
@@ -84,6 +84,6 @@ target_link_libraries(
PUBLIC PUBLIC
gtest gtest_main gtest gtest_main
PRIVATE PRIVATE
${KF5_PRIVATE_LIBRARIES} ${KF_PRIVATE_LIBRARIES}
${QET_PRIVATE_LIBRARIES}) ${QET_PRIVATE_LIBRARIES})
+1 -1
View File
@@ -74,6 +74,6 @@ target_link_libraries(
${PROJECT_NAME} ${PROJECT_NAME}
PRIVATE PRIVATE
Qt::Test Qt::Test
${KF5_PRIVATE_LIBRARIES} ${KF_PRIVATE_LIBRARIES}
${QET_PRIVATE_LIBRARIES}) ${QET_PRIVATE_LIBRARIES})