Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
Parley
Commits
ca4c3cbe
Commit
ca4c3cbe
authored
Sep 21, 2021
by
Andreas Cord-Landwehr
Browse files
Mark translate-shell as runtime dependency
parent
829c9b57
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
ca4c3cbe
...
...
@@ -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
...
...
cmake/FindTranslateShell.cmake
0 → 100644
View file @
ca4c3cbe
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"
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment