Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
T.J. Corona
CMB-SuperBuild
Commits
5565a587
Commit
5565a587
authored
Mar 22, 2016
by
Ben Boeckel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows: implement packaging
parent
0503b0b3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
130 additions
and
0 deletions
+130
-0
CMakeLists.txt
CMakeLists.txt
+5
-0
projects/win32/cmb.bundle.windows.cmake
projects/win32/cmb.bundle.windows.cmake
+121
-0
projects/win32/hydrology.bundle.cmake
projects/win32/hydrology.bundle.cmake
+2
-0
projects/win32/modelbuilder.bundle.cmake
projects/win32/modelbuilder.bundle.cmake
+2
-0
No files found.
CMakeLists.txt
View file @
5565a587
...
@@ -70,6 +70,11 @@ function (superbuild_add_packaging)
...
@@ -70,6 +70,11 @@ function (superbuild_add_packaging)
TGZ
)
TGZ
)
endif
()
endif
()
if
(
USE_SYSTEM_qt4
)
list
(
APPEND superbuild_export_variables
QT_LIBRARY_DIR
)
endif
()
foreach
(
generator IN LISTS generators
)
foreach
(
generator IN LISTS generators
)
superbuild_add_extra_package_test
(
modelbuilder
"
${
generator
}
"
superbuild_add_extra_package_test
(
modelbuilder
"
${
generator
}
"
LABELS
"CMB"
LABELS
"CMB"
...
...
projects/win32/cmb.bundle.windows.cmake
0 → 100644
View file @
5565a587
set
(
CPACK_MONOLITHIC_INSTALL TRUE
)
# URL to website providing assistance in installing your application.
set
(
CPACK_NSIS_HELP_LINK
"https://gitlab.kitware.com/cmb/cmb/wikis/home"
)
#FIXME: need a pretty icon.
#set(CPACK_NSIS_MUI_ICON "${CMAKE_CURRENT_LIST_DIR}/paraview.ico")
set
(
ModelBuilder_description
"Model Builder"
)
set
(
paraview_description
"ParaView"
)
set
(
pvserver_description
"ParaView (server)"
)
set
(
pvdataserver_description
"ParaView (data server)"
)
set
(
pvrenderserver_description
"ParaView (render server)"
)
set
(
pvpython_description
"ParaView (Python shell)"
)
set
(
paraview_executables
)
if
(
cmb_install_paraview_server
)
set
(
paraview_executables
pvserver
pvdataserver
pvrenderserver
pvbatch
pvpython
)
endif
()
set
(
library_paths
"lib"
)
if
(
USE_SYSTEM_qt4
)
list
(
APPEND library_paths
"
${
QT_LIBRARY_DIR
}
"
)
endif
()
foreach
(
executable IN LISTS paraview_executables cmb_programs_to_install
)
if
(
DEFINED
"
${
executable
}
_description"
)
list
(
APPEND CPACK_NSIS_MENU_LINKS
"bin/
${
executable
}
.exe"
"
${${
executable
}
_description
}
"
)
else
()
message
(
WARNING
"No description for
${
executable
}
given."
)
endif
()
superbuild_windows_install_program
(
"
${
executable
}
"
"
${
library_paths
}
"
)
endforeach
()
foreach
(
plugin IN LISTS cmb_plugins_to_install
)
superbuild_windows_install_plugin
(
"
${
plugin
}
"
"
${
library_paths
}
"
)
endforeach
()
set
(
python_modules
)
if
(
pythongirderclient_enabled
)
list
(
APPEND python_modules
six
requests
girder_client
)
endif
()
superbuild_windows_install_python
(
"
${
CMAKE_INSTALL_PREFIX
}
"
MODULES smtk
shiboken
paraview
vtk
${
python_modules
}
MODULE_DIRECTORIES
"
${
superbuild_install_location
}
/bin/Lib/site-packages"
"
${
superbuild_install_location
}
/lib/site-packages"
"
${
superbuild_install_location
}
/lib/paraview-
${
paraview_version
}
/site-packages"
SEARCH_DIRECTORIES
"lib"
)
superbuild_windows_install_python
(
"
${
CMAKE_INSTALL_PREFIX
}
"
MODULES vtk
MODULE_DIRECTORIES
"
${
superbuild_install_location
}
/bin/Lib/site-packages"
"
${
superbuild_install_location
}
/lib/site-packages"
"
${
superbuild_install_location
}
/lib/paraview-
${
paraview_version
}
/site-packages"
SEARCH_DIRECTORIES
"lib"
DESTINATION
"bin/Lib/site-packages/paraview"
)
if
(
NOT USE_SYSTEM_python
)
superbuild_windows_install_python
(
"
${
CMAKE_INSTALL_PREFIX
}
"
MODULES ConfigParser StringIO UserDict __future__ _abcoll _weakrefset abc
atexit bisect code codecs codeop collections commands compileall
copy copy_reg difflib fnmatch functools genericpath getopt glob
hashlib functools heapq io keyword linecache locale new ntpath os
pickle pkgutil platform posixpath pprint py_compile random re runpy
shlex shutil site sre_compile sre_constants sre_parse stat string
struct subprocess sysconfig tempfile textwrap threading traceback
types warnings weakref
ctypes distutils email encodings importlib json multiprocessing xml
MODULE_DIRECTORIES
"
${
superbuild_install_location
}
/bin/Lib"
SEARCH_DIRECTORIES
"lib"
DESTINATION
"bin/Lib"
)
endif
()
if
(
pythonrequests_enabled
)
install
(
FILES
"
${
superbuild_install_location
}
/bin/Lib/site-packages/requests/cacert.pem"
DESTINATION
"
${
cmb_package
}
/bin/Lib/site-packages/requests"
COMPONENT superbuild
)
endif
()
# install the .plugins file
install
(
FILES
"
${
cmb_plugins_file
}
"
DESTINATION
"bin"
COMPONENT superbuild
)
install
(
DIRECTORY
"
${
superbuild_install_location
}
/share/cmb/workflows/"
DESTINATION
"share/cmb/workflows"
COMPONENT superbuild
)
projects/win32/hydrology.bundle.cmake
0 → 100644
View file @
5565a587
include
(
hydrology.bundle.common
)
include
(
cmb.bundle.windows
)
projects/win32/modelbuilder.bundle.cmake
0 → 100644
View file @
5565a587
include
(
modelbuilder.bundle.common
)
include
(
cmb.bundle.windows
)
Write
Preview
Markdown
is supported
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