kde-workspace/plasma/scriptengines/python/CMakeLists.txt
Ivailo Monev efbde9e504 plasma: organize sub-directories
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-12-24 22:48:47 +02:00

33 lines
1.4 KiB
CMake

project(plasma-python)
include(PythonMacros)
# install the library, .desktop, and plasma.py
python_install(pyappletscript.py ${DATA_INSTALL_DIR}/plasma_scriptengine_python)
python_install(plasma_importer.py ${DATA_INSTALL_DIR}/plasma_scriptengine_python)
python_install(pydataengine.py ${DATA_INSTALL_DIR}/plasma_scriptengine_python)
python_install(pyrunner.py ${DATA_INSTALL_DIR}/plasma_scriptengine_python)
python_install(pywallpaper.py ${DATA_INSTALL_DIR}/plasma_scriptengine_python)
python_install(plasmascript.py ${PYTHON_SITE_PACKAGES_DIR}/PyKDE4)
install(FILES plasma-scriptengine-applet-python.desktop
DESTINATION ${SERVICES_INSTALL_DIR})
install(FILES plasma-scriptengine-dataengine-python.desktop
DESTINATION ${SERVICES_INSTALL_DIR})
install(FILES plasma-scriptengine-runner-python.desktop
DESTINATION ${SERVICES_INSTALL_DIR})
install(FILES plasma-scriptengine-wallpaper-python.desktop
DESTINATION ${SERVICES_INSTALL_DIR})
###########################################################################
# Test plasmoids
option(INSTALL_PYTHON_TEST_PLASMA "Install test python applet" OFF)
if(INSTALL_PYTHON_TEST_PLASMA )
install(DIRECTORY test/plasma-applet-pyclock DESTINATION ${DATA_INSTALL_DIR}/plasma/plasmoids)
#TODO where install it ?
#install(DIRECTORY test/plasma-dataengine-pytime DESTINATION ${DATA_INSTALL_DIR}/plasma/engines)
endif(INSTALL_PYTHON_TEST_PLASMA)