cmb.bundle.windows.cmake 2.72 KB
Newer Older
Ben Boeckel's avatar
Ben Boeckel committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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(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)
36
37
  superbuild_windows_install_plugin("${plugin}.dll"
    "bin"
Ben Boeckel's avatar
Ben Boeckel committed
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
    "${library_paths}")
endforeach ()

set(python_modules)
if (pythongirderclient_enabled)
  list(APPEND python_modules
    requests
    girder_client)
endif ()

superbuild_windows_install_python(
  "${CMAKE_INSTALL_PREFIX}"
  MODULES smtk
          shiboken
          paraview
53
54
          pygments
          six
Ben Boeckel's avatar
Ben Boeckel committed
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
          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")

76
77
include(python.functions)
superbuild_install_superbuild_python()
Ben Boeckel's avatar
Ben Boeckel committed
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95

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)