1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-21 03:06:34 +01:00

Add CMake option to en/disable Python support

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2023-07-17 23:15:45 +02:00
parent 56f2993c57
commit 4bbe60eff0
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B

View File

@ -132,6 +132,8 @@ if (KF5Wallet_FOUND AND KF5KIO_FOUND AND KF5Crash_FOUND AND KF5CoreAddons_FOUND
endif() endif()
# Optional: PySide2 # Optional: PySide2
option(BUILD_PYTHON_SUPPORT "Support for Python plugins" ON)
if (BUILD_PYTHON_SUPPORT)
find_package(PySide2 "2.0.0") find_package(PySide2 "2.0.0")
find_package(Shiboken2 "2.0.0") find_package(Shiboken2 "2.0.0")
find_package(Python3 COMPONENTS Development) find_package(Python3 COMPONENTS Development)
@ -141,6 +143,7 @@ set_package_properties(Python3 PROPERTIES DESCRIPTION "Python plugins" TYPE OPTI
if (PySide2_FOUND AND Shiboken2_FOUND AND Python3_FOUND) if (PySide2_FOUND AND Shiboken2_FOUND AND Python3_FOUND)
set(ENABLE_PYTHON_PLUGINS TRUE) set(ENABLE_PYTHON_PLUGINS TRUE)
endif() endif()
endif()
find_package(Intl) find_package(Intl)
if (Intl_FOUND) if (Intl_FOUND)