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:
parent
56f2993c57
commit
4bbe60eff0
@ -132,14 +132,17 @@ if (KF5Wallet_FOUND AND KF5KIO_FOUND AND KF5Crash_FOUND AND KF5CoreAddons_FOUND
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Optional: PySide2
|
# Optional: PySide2
|
||||||
find_package(PySide2 "2.0.0")
|
option(BUILD_PYTHON_SUPPORT "Support for Python plugins" ON)
|
||||||
find_package(Shiboken2 "2.0.0")
|
if (BUILD_PYTHON_SUPPORT)
|
||||||
find_package(Python3 COMPONENTS Development)
|
find_package(PySide2 "2.0.0")
|
||||||
set_package_properties(PySide2 PROPERTIES DESCRIPTION "Python plugins" TYPE OPTIONAL)
|
find_package(Shiboken2 "2.0.0")
|
||||||
set_package_properties(Shiboken2 PROPERTIES DESCRIPTION "Python plugins" TYPE OPTIONAL)
|
find_package(Python3 COMPONENTS Development)
|
||||||
set_package_properties(Python3 PROPERTIES DESCRIPTION "Python plugins" TYPE OPTIONAL)
|
set_package_properties(PySide2 PROPERTIES DESCRIPTION "Python plugins" TYPE OPTIONAL)
|
||||||
if (PySide2_FOUND AND Shiboken2_FOUND AND Python3_FOUND)
|
set_package_properties(Shiboken2 PROPERTIES DESCRIPTION "Python plugins" TYPE OPTIONAL)
|
||||||
|
set_package_properties(Python3 PROPERTIES DESCRIPTION "Python plugins" TYPE OPTIONAL)
|
||||||
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user