2018-02-26 18:18:56 +01:00
|
|
|
function(install_python_script name)
|
2018-02-26 18:28:58 +01:00
|
|
|
if (ENABLE_PYTHON_PLUGINS)
|
2018-03-09 18:09:53 +01:00
|
|
|
install(
|
|
|
|
DIRECTORY ${name}
|
2019-04-19 11:38:15 +02:00
|
|
|
DESTINATION ${FALKON_INSTALL_PLUGINDIR}
|
2018-03-09 18:09:53 +01:00
|
|
|
FILES_MATCHING PATTERN "*" PATTERN "Messages.sh" EXCLUDE
|
|
|
|
)
|
2019-04-19 11:38:15 +02:00
|
|
|
install(FILES i18n.py DESTINATION "${FALKON_INSTALL_PLUGINDIR}/${name}")
|
2018-02-26 18:28:58 +01:00
|
|
|
endif()
|
2018-02-26 18:18:56 +01:00
|
|
|
endfunction()
|
|
|
|
|
2018-10-01 23:36:10 +02:00
|
|
|
function(install_qml_script name)
|
|
|
|
install(
|
|
|
|
DIRECTORY ${name}
|
2019-04-19 11:38:15 +02:00
|
|
|
DESTINATION ${FALKON_INSTALL_PLUGINDIR}
|
2018-10-01 23:36:10 +02:00
|
|
|
FILES_MATCHING PATTERN "*" PATTERN "Messages.sh" EXCLUDE
|
|
|
|
)
|
|
|
|
endfunction()
|
|
|
|
|
2018-03-03 12:40:54 +01:00
|
|
|
install_python_script(runaction)
|
2018-07-17 11:40:14 +02:00
|
|
|
install_python_script(middleclickloader)
|
2018-10-01 23:36:10 +02:00
|
|
|
|
2019-04-21 10:53:50 +02:00
|
|
|
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|
|
|
install_python_script(hellopython)
|
|
|
|
install_qml_script(helloqml)
|
|
|
|
endif()
|
|
|
|
|