Commit ca4c3cbe authored by Andreas Cord-Landwehr's avatar Andreas Cord-Landwehr
Browse files

Mark translate-shell as runtime dependency

parent 829c9b57
......@@ -12,7 +12,7 @@ set(KF5_MIN_VERSION "5.73.0")
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} )
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)
include(KDEInstallDirs)
include(KDECompilerSettings NO_POLICY_SCOPE)
......@@ -70,6 +70,13 @@ set_package_properties(LibXml2 PROPERTIES
PURPOSE "Required to build HTML export for Parley."
)
find_package(TranslateShell)
set_package_properties(TranslateShell PROPERTIES
URL "https://github.com/soimort/translate-shell"
TYPE RUNTIME
PURPOSE "Runtime dependency for online access to translations"
)
# at the end, output the configuration
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/config-parley.h.cmake
......
find_program (
TRANS_EXECUTABLE
trans
DOC "Translate Shell executable"
)
find_package_handle_standard_args(
TranslateShell
REQUIRED_VARS TRANS_EXECUTABLE
FAIL_MESSAGE "Translate Shell application not found"
)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment