cmb.bundle.unix.cmake 1.62 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
set(paraview_executables)
if (cmb_install_paraview_server)
  set(paraview_executables
    pvserver
    pvdataserver
    pvrenderserver
    pvbatch
    pvpython)
endif ()

foreach (executable IN LISTS paraview_executables cmb_programs_to_install)
  superbuild_unix_install_program("${executable}"
    "paraview-${paraview_version};cmb-${cmb_version}")
endforeach ()

foreach (plugin IN LISTS cmb_plugins_to_install)
  superbuild_unix_install_plugin("lib${plugin}.so"
    "cmb-${cmb_version}"
    ";paraview-${paraview_version};cmb-${cmb_version}"
    "cmb-${cmb_version}/plugins/")
endforeach ()

23
24
25
26
27
28
29
30
set(python_modules)
if (pythongirderclient_enabled)
  list(APPEND python_modules
    six
    requests
    girder_client)
endif ()

Ben Boeckel's avatar
Ben Boeckel committed
31
32
33
34
35
36
37
superbuild_unix_install_python(
  "${CMAKE_INSTALL_PREFIX}"
  "cmb-${cmb_version}"
  MODULES smtk
          shiboken
          paraview
          vtk
38
          ${python_modules}
Ben Boeckel's avatar
Ben Boeckel committed
39
40
41
42
43
44
45
  MODULE_DIRECTORIES
          "${superbuild_install_location}/lib/python2.7/site-packages"
          "${superbuild_install_location}/lib/paraview-${paraview_version}/site-packages"
  SEARCH_DIRECTORIES
          "cmb-${cmb_version}"
          "paraview-${paraview_version}")

46
47
48
49
50
51
52
if (pythonrequests_enabled)
  install(
    FILES       "${superbuild_install_location}/lib/python2.7/site-packages/requests/cacert.pem"
    DESTINATION "${cmb_package}/lib/python2.7/site-packages/requests"
    COMPONENT   superbuild)
endif ()

Ben Boeckel's avatar
Ben Boeckel committed
53
54
55
56
57
58
59
60
61
install(
  FILES       "${cmb_plugins_file}"
  DESTINATION "bin"
  COMPONENT   superbuild)

install(
  DIRECTORY   "${superbuild_install_location}/share/cmb/workflows/"
  DESTINATION "share/cmb/workflows"
  COMPONENT   superbuild)