]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - CMakeLists.txt
Add a default folder icon to the edit folder dialog. https://redmine.stoutner.com...
[PrivacyBrowserPC.git] / CMakeLists.txt
index b32fd1854b7db33b922b9bcc1fc05a59b9229ff8..42b28dd527ca4dd9ae1208fe41b3e56abfdbbdc5 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright © 2022 Soren Stoutner <soren@stoutner.com>.
+# Copyright 2022-2023 Soren Stoutner <soren@stoutner.com>.
 #
 # This file is part of Privacy Browser PC <https://www.stoutner.com/privacy-browser-pc>.
 #
@@ -42,22 +42,37 @@ include(ECMInstallIcons)
 include(ECMQtDeclareLoggingCategory)
 include(FeatureSummary)
 
+# Include the Position Independent Executable checker.  <https://cmake.org/cmake/help/latest/policy/CMP0083.html>
+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.  <https://cmake.org/cmake/help/latest/variable/CMAKE_POSITION_INDEPENDENT_CODE.html>
+set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
+
 # Load the Qt components.
 find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
     Core
     Gui
+    PrintSupport
+    Sql
+    WebEngineCore
     WebEngineWidgets
     Widgets
 )
 
 # Load the KDE Frameworks components.
 find_package(KF5 ${KDE_FRAMEWORKS_MIN_VERSION} REQUIRED COMPONENTS
+    Completion
     ConfigWidgets
     CoreAddons
     Crash
     DBusAddons
     DocTools
     I18n
+    Notifications
+    KIO
     XmlGui
 )
 
@@ -65,9 +80,9 @@ find_package(KF5 ${KDE_FRAMEWORKS_MIN_VERSION} REQUIRED COMPONENTS
 add_subdirectory(doc)
 add_subdirectory(src)
 
-# Make it possible to use the PO files fetched by the fetch-translations step.
-ki18n_install(po)
-kdoctools_install(po)
+# Install the PO files.  These should be enabled once there are PO translations.
+#ki18n_install(po)
+#kdoctools_install(po)
 
 # Generate a summary.
 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)