1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-13 10:32:11 +01:00
falkonOfficial/src/scripts/CMakeLists.txt

28 lines
756 B
CMake
Raw Normal View History

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()