X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserPC.git;a=blobdiff_plain;f=CMakeLists.txt;fp=CMakeLists.txt;h=29c01f6e5fd7266d8d134faffc44f811836f6b0d;hp=ca98f3512c7a40611ce3edc0d703c97bdb9fba16;hb=ad39882c17bfd7d96cbcfd3873d4dd332722e84f;hpb=3ff4e08896c8cb0821d7bead07732e2064af844c diff --git a/CMakeLists.txt b/CMakeLists.txt index ca98f35..29c01f6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,27 +15,37 @@ # You should have received a copy of the GNU General Public License # along with Privacy Browser PC. If not, see . + +# Set the minimum CMake version. cmake_minimum_required(VERSION 3.16) +# Name the project. project(privacybrowser) # Set the minimum framework versions. set(QT_MIN_VERSION "5.15.0") set(KDE_FRAMEWORKS_MIN_VERSION "5.83.0") +# Load the Extra CMake Modules that correspond to the KDE Frameworks version. find_package(ECM ${KDE_FRAMEWORKS_MIN_VERSION} REQUIRED NO_MODULE) + +# Set the CMake module path. set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH}) +# Include the KDE modules. include(KDEInstallDirs) include(KDECMakeSettings) include(KDECompilerSettings NO_POLICY_SCOPE) +# Include the Extra CMake Modules. include(ECMInstallIcons) include(ECMQtDeclareLoggingCategory) include(FeatureSummary) +# Load the Qt components. find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Core Gui Widgets) +# Load the KDE Frameworks components. find_package(KF5 ${KDE_FRAMEWORKS_MIN_VERSION} REQUIRED COMPONENTS ConfigWidgets CoreAddons @@ -46,11 +56,13 @@ find_package(KF5 ${KDE_FRAMEWORKS_MIN_VERSION} REQUIRED COMPONENTS XmlGui ) +# Add the subdirectories. add_subdirectory(doc) add_subdirectory(src) -# Make it possible to use the po files fetched by the fetch-translations step +# Make it possible to use the PO files fetched by the fetch-translations step. ki18n_install(po) kdoctools_install(po) +# Generate a summary. feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)