X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserPC.git;a=blobdiff_plain;f=CMakeLists.txt;h=42b28dd527ca4dd9ae1208fe41b3e56abfdbbdc5;hp=7f2eac8935db648fe35312c21d362eb38d28c0d7;hb=HEAD;hpb=9e33ea0d954d0b1a45a719d51267850d4fad5513 diff --git a/CMakeLists.txt b/CMakeLists.txt index 7f2eac8..bded855 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,19 +1,20 @@ -# Copyright 2022-2023 Soren Stoutner . +# SPDX-License-Identifier: GPL-3.0-or-later +# SPDX-FileCopyrightText: 2022-2024 Soren Stoutner # -# This file is part of Privacy Browser PC . +# This file is part of Privacy Browser PC . # -# Privacy Browser PC is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Privacy Browser PC is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. # -# You should have received a copy of the GNU General Public License -# along with Privacy Browser PC. If not, see . +# You should have received a copy of the GNU General Public License along with +# this program. If not, see . # Set the minimum CMake version. @@ -23,8 +24,8 @@ cmake_minimum_required(VERSION 3.16) project(privacybrowser) # Set the minimum framework versions. -set(QT_MIN_VERSION "5.15.0") -set(KDE_FRAMEWORKS_MIN_VERSION "5.83.0") +set(QT_MIN_VERSION "6.0.0") +set(KDE_FRAMEWORKS_MIN_VERSION "6.0.0") # Load the Extra CMake Modules that correspond to the KDE Frameworks version. find_package(ECM ${KDE_FRAMEWORKS_MIN_VERSION} REQUIRED NO_MODULE) @@ -42,10 +43,21 @@ include(ECMInstallIcons) include(ECMQtDeclareLoggingCategory) include(FeatureSummary) +# Disable forcing of PIE, which appears to cause problems with Ubuntu's build system. +# Include the Position Independent Executable checker. +#include(CheckPIESupported) + +# Check to see if Position Independent Executable is supported in the current linker and environment. +#check_pie_supported() + +# Add the Position Independent Executable compiler flag if it is supported in the current linker and environment. +#set(CMAKE_POSITION_INDEPENDENT_CODE TRUE) + # Load the Qt components. -find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS +find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Core Gui + PrintSupport Sql WebEngineCore WebEngineWidgets @@ -53,7 +65,7 @@ find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS ) # Load the KDE Frameworks components. -find_package(KF5 ${KDE_FRAMEWORKS_MIN_VERSION} REQUIRED COMPONENTS +find_package(KF6 ${KDE_FRAMEWORKS_MIN_VERSION} REQUIRED COMPONENTS Completion ConfigWidgets CoreAddons