Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Antoine Belvire
otb
Commits
fa59e59e
Commit
fa59e59e
authored
12 years ago
by
Julien Malik
Browse files
Options
Downloads
Patches
Plain Diff
ENH: move the cmake get_qt_translation_files function, to be used for MacOS bundle too
parent
89c33e3d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Packaging/CMakeLists.txt
+19
-0
19 additions, 0 deletions
Packaging/CMakeLists.txt
Packaging/Windows/CMakeLists.txt
+0
-19
0 additions, 19 deletions
Packaging/Windows/CMakeLists.txt
with
19 additions
and
19 deletions
Packaging/CMakeLists.txt
+
19
−
0
View file @
fa59e59e
...
...
@@ -3,6 +3,25 @@ mark_as_advanced(Monteverdi2_USE_CPACK)
if
(
Monteverdi2_USE_CPACK
)
# Get the translation files coming with Qt, and install them in the bundle
# They are loaded by Monteverdi2.
function
(
get_qt_translation_files RESULT
)
# These files are the "qt_<localename>.qm" files
# They are located in QT_TRANSLATIONS_DIR, which comes from FindQt4
file
(
GLOB translation_files
${
QT_TRANSLATIONS_DIR
}
/qt_*
)
# We need to remove the "qt_help_<localename>.qm" files from this list
foreach
(
translation_item
${
translation_files
}
)
if
(
${
translation_item
}
MATCHES
"qt_help"
)
list
(
REMOVE_ITEM translation_files
${
translation_item
}
)
endif
()
endforeach
()
set
(
${
RESULT
}
${
translation_files
}
PARENT_SCOPE
)
endfunction
()
get_qt_translation_files
(
QT_TRANSLATIONS_FILES
)
set
(
CPACK_PACKAGE_NAME
"Monteverdi2"
)
set
(
CPACK_PACKAGE_DESCRIPTION_SUMMARY
"Monteverdi2"
)
...
...
This diff is collapsed.
Click to expand it.
Packaging/Windows/CMakeLists.txt
+
0
−
19
View file @
fa59e59e
...
...
@@ -34,25 +34,6 @@ install(DIRECTORY ${GDAL_DATA}
DESTINATION share
COMPONENT Resources
)
# Get the translation files coming with qt, and install them in the bundle
# They are loaded by Monteverdi2.
function
(
get_qt_translation_files RESULT
)
# These files are the "qt_<localename>.qm" files
# They are located in QT_TRANSLATIONS_DIR, which comes from FindQt4
file
(
GLOB translation_files
${
QT_TRANSLATIONS_DIR
}
/qt_*
)
# We need to remove the "qt_help_<localename>.qm" files from this list
foreach
(
translation_item
${
translation_files
}
)
if
(
${
translation_item
}
MATCHES
"qt_help"
)
list
(
REMOVE_ITEM translation_files
${
translation_item
}
)
endif
()
endforeach
()
set
(
${
RESULT
}
${
translation_files
}
PARENT_SCOPE
)
endfunction
()
get_qt_translation_files
(
QT_TRANSLATIONS_FILES
)
install
(
FILES
${
QT_TRANSLATIONS_FILES
}
DESTINATION share/qt4/translations
COMPONENT Resources
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment