1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00
falkonOfficial/src/scripts/CMakeLists.txt
David Rosca 9828237159
Plugins: Use embedded JSON metadata for shared library plugins
It is no longer needed to load the library to retrieve metadata.
2019-04-21 11:03:26 +02:00

28 lines
756 B
CMake

function(install_python_script name)
if (ENABLE_PYTHON_PLUGINS)
install(
DIRECTORY ${name}
DESTINATION ${FALKON_INSTALL_PLUGINDIR}
FILES_MATCHING PATTERN "*" PATTERN "Messages.sh" EXCLUDE
)
install(FILES i18n.py DESTINATION "${FALKON_INSTALL_PLUGINDIR}/${name}")
endif()
endfunction()
function(install_qml_script name)
install(
DIRECTORY ${name}
DESTINATION ${FALKON_INSTALL_PLUGINDIR}
FILES_MATCHING PATTERN "*" PATTERN "Messages.sh" EXCLUDE
)
endfunction()
install_python_script(runaction)
install_python_script(middleclickloader)
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
install_python_script(hellopython)
install_qml_script(helloqml)
endif()