Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review 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
mantidproject
mantid
Commits
782b9e93
Commit
782b9e93
authored
12 years ago
by
Russell Taylor
Browse files
Options
Downloads
Plain Diff
Merge remote branch 'origin/bugfix/6795_qtassistant_packaging'
parents
d1a87399
32226092
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
Code/Mantid/Build/CMake/WindowsNSIS.cmake
+8
-3
8 additions, 3 deletions
Code/Mantid/Build/CMake/WindowsNSIS.cmake
Code/Mantid/docs/qtassistant/CMakeLists.txt
+12
-4
12 additions, 4 deletions
Code/Mantid/docs/qtassistant/CMakeLists.txt
with
20 additions
and
7 deletions
Code/Mantid/Build/CMake/WindowsNSIS.cmake
+
8
−
3
View file @
782b9e93
...
...
@@ -34,9 +34,6 @@
install
(
DIRECTORY
${
CMAKE_LIBRARY_PATH
}
/Python27/Scripts DESTINATION bin PATTERN
".svn"
EXCLUDE PATTERN
".git"
EXCLUDE
)
install
(
FILES
${
PY_DLL_PREFIX
}${
PY_DLL_SUFFIX_RELEASE
}
${
PYTHON_EXECUTABLE
}
${
PYTHONW_EXECUTABLE
}
DESTINATION bin
)
install
(
DIRECTORY
${
CMAKE_LIBRARY_PATH
}
/qt_plugins/imageformats DESTINATION plugins/qtplugins PATTERN
".svn"
EXCLUDE PATTERN
".git"
EXCLUDE
)
install
(
FILES
${
CMAKE_CURRENT_SOURCE_DIR
}
/Installers/WinInstaller/qt.conf DESTINATION bin
)
# include files
install
(
DIRECTORY
${
CMAKE_INCLUDE_PATH
}
/boost DESTINATION include PATTERN
".svn"
EXCLUDE PATTERN
".git"
EXCLUDE
)
install
(
DIRECTORY
${
CMAKE_INCLUDE_PATH
}
/Poco DESTINATION include PATTERN
".svn"
EXCLUDE PATTERN
".git"
EXCLUDE
)
...
...
@@ -105,6 +102,14 @@
REGEX
"(QtDesigner4.dll)|(QtDesignerComponents4.dll)|(QtScript4.dll)|(-gd-)|(d4.dll)|(_d.dll)"
EXCLUDE
PATTERN
".git"
EXCLUDE
)
# Qt plugins into out plugins directory and use qt.conf to point Qt at where they are
install
(
DIRECTORY
${
CMAKE_LIBRARY_PATH
}
/qt_plugins/imageformats
${
CMAKE_LIBRARY_PATH
}
/qt_plugins/sqldrivers DESTINATION plugins/qtplugins
REGEX
"^.*d4.dll$"
EXCLUDE
)
install
(
FILES
${
CMAKE_CURRENT_SOURCE_DIR
}
/Installers/WinInstaller/qt.conf DESTINATION bin
)
# Copy assistant.exe
install
(
FILES
${
CMAKE_LIBRARY_PATH
}
/assistant.exe DESTINATION bin
)
# Release deployments do modify enviromental variables, other deployments do not.
if
(
CPACK_PACKAGE_SUFFIX STREQUAL
""
)
...
...
This diff is collapsed.
Click to expand it.
Code/Mantid/docs/qtassistant/CMakeLists.txt
+
12
−
4
View file @
782b9e93
...
...
@@ -4,7 +4,7 @@
#QT_QCOLLECTIONGENERATOR_EXECUTABLE
if
(
QT_QCOLLECTIONGENERATOR_EXECUTABLE
)
# set directories to follow structure of qt4 on linux
set
(
HELP_OUT_DIR
${
CMAKE_
LIBRARY_OUTPUT_DIRECTORY
}
/
${
CMAKE_CFG_INT
DIR
}
/qtassistant
)
set
(
HELP_OUT_DIR
${
CMAKE_
CURRENT_BINARY_
DIR
}
/qtassistant
)
set
(
HELP_QCH_DIR
${
HELP_OUT_DIR
}
/qch
)
set
(
HELP_HTML_DIR
${
HELP_OUT_DIR
}
/html
)
set
(
HELP_IMG_DIR
${
HELP_OUT_DIR
}
/src/images
)
...
...
@@ -41,8 +41,6 @@ if (QT_QCOLLECTIONGENERATOR_EXECUTABLE)
add_custom_command
(
OUTPUT
${
CMAKE_BINARY_DIR
}
/
${
CMAKE_CFG_INTDIR
}
/assistant.exe
COMMAND
${
CMAKE_COMMAND
}
ARGS -E copy_if_different
${
THIRD_PARTY
}
/assistant.exe
${
CMAKE_LIBRARY_OUTPUT_DIRECTORY
}
/
${
CMAKE_CFG_INTDIR
}
/assistant.exe
)
install
(
FILES
${
CMAKE_LIBRARY_OUTPUT_DIRECTORY
}
/
${
CMAKE_CFG_INTDIR
}
/assistant.exe
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
)
endif
(
WIN32
)
set
(
HELP_ALGO_OUT
...
...
@@ -69,11 +67,21 @@ if (QT_QCOLLECTIONGENERATOR_EXECUTABLE)
DEPENDS
${
HELP_ALGO_OUT
}
${
HELP_FIT_OUT
}
${
HELP_QHCP_SOURCE
}
COMMAND
${
QT_QCOLLECTIONGENERATOR_EXECUTABLE
}
${
HELP_OUT_DIR
}
/mantid.qhcp
)
add_custom_target
(
qtassistant ALL
DEPENDS MantidPlot
${
HELP_QCH_DIR
}
/mantid.qhc
)
# Copy to correct location in bin
set
(
HELP_BIN_OUT_DIR
${
CMAKE_LIBRARY_OUTPUT_DIRECTORY
}
/
${
CMAKE_CFG_INTDIR
}
/qtassistant
)
add_custom_command
(
TARGET qtassistant
POST_BUILD
COMMAND
${
CMAKE_COMMAND
}
ARGS -E copy_directory
${
HELP_OUT_DIR
}
${
HELP_BIN_OUT_DIR
}
COMMENT
"Copying qtassistant to bin"
)
###########################################################################################
# Installation settings
###########################################################################################
set
(
GUI_HELP_DEST share/doc
)
install
(
DIRECTORY
${
HELP_QCH_DIR
}
${
HELP_HTML_DIR
}
${
HELP_IMG_DIR
}
...
...
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