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
1047361f
Commit
1047361f
authored
12 years ago
by
Julien Malik
Browse files
Options
Downloads
Patches
Plain Diff
ENH: export qt.conf with translations path into build dir
parent
c146dfd4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Code/Application/CMakeLists.txt
+13
-0
13 additions, 0 deletions
Code/Application/CMakeLists.txt
Code/Application/DeployQtConf.cmake
+2
-0
2 additions, 0 deletions
Code/Application/DeployQtConf.cmake
Code/Application/qt.conf.in
+2
-0
2 additions, 0 deletions
Code/Application/qt.conf.in
with
17 additions
and
0 deletions
Code/Application/CMakeLists.txt
+
13
−
0
View file @
1047361f
...
...
@@ -61,6 +61,19 @@ target_link_libraries(monteverdi2
${
QT_LIBRARIES
}
)
# deploy a qt.conf file in the monteverdi2 target build dir
# to avoid warning on translation discovery
add_custom_command
(
TARGET monteverdi2
PRE_BUILD
COMMAND
${
CMAKE_COMMAND
}
ARGS -D QT_TRANSLATIONS_DIR:PATH=
${
QT_TRANSLATIONS_DIR
}
-D SOURCE_DIR:PATH=
${
CMAKE_CURRENT_SOURCE_DIR
}
-D TARGET_DIR:PATH=$<TARGET_FILE_DIR:monteverdi2>
-P
${
CMAKE_CURRENT_SOURCE_DIR
}
/DeployQtConf.cmake
COMMENT
"Deploying qt.conf in build dir"
VERBATIM
)
#############################################################################
install
(
...
...
This diff is collapsed.
Click to expand it.
Code/Application/DeployQtConf.cmake
0 → 100644
+
2
−
0
View file @
1047361f
configure_file
(
${
SOURCE_DIR
}
/qt.conf.in
${
TARGET_DIR
}
/qt.conf
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Code/Application/qt.conf.in
0 → 100644
+
2
−
0
View file @
1047361f
[Paths]
Translations=@QT_TRANSLATIONS_DIR@
\ No newline at end of file
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