1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 09:42:10 +02: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 756ab57c98
commit ddc03a46ba
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)