X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserPC.git;a=blobdiff_plain;f=CMakeLists.txt;h=d6408ec8db956ca1163cf2348afc640dece8e842;hp=62b04912a069efc299dbebfdbd7b25039c634e85;hb=HEAD;hpb=fd6012176bef7aee91b15030530630679c46c2b5 diff --git a/CMakeLists.txt b/CMakeLists.txt index 62b0491..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,8 +43,18 @@ 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 @@ -54,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