cmb.bundle.unix.cmake 1.71 KB
Newer Older
Ben Boeckel's avatar
Ben Boeckel committed
1
2
3
4
5
6
7
8
9
10
11
12
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 ()

13
14
15
16
17
18
19
set(python_modules)
if (pythongirderclient_enabled)
  list(APPEND python_modules
    requests
    girder_client)
endif ()

Ben Boeckel's avatar
Ben Boeckel committed
20
21
22
23
24
25
superbuild_unix_install_python(
  "${CMAKE_INSTALL_PREFIX}"
  "cmb-${cmb_version}"
  MODULES smtk
          shiboken
          paraview
26
27
          pygments
          six
Ben Boeckel's avatar
Ben Boeckel committed
28
          vtk
29
          ${python_modules}
Ben Boeckel's avatar
Ben Boeckel committed
30
31
32
33
34
35
36
  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}")

37
38
39
if (pythonrequests_enabled)
  install(
    FILES       "${superbuild_install_location}/lib/python2.7/site-packages/requests/cacert.pem"
40
    DESTINATION "lib/python2.7/site-packages/requests"
41
42
43
    COMPONENT   superbuild)
endif ()

44
45
46
include(python.functions)
superbuild_install_superbuild_python()

Ben Boeckel's avatar
Ben Boeckel committed
47
48
49
50
51
52
53
54
55
install(
  FILES       "${cmb_plugins_file}"
  DESTINATION "bin"
  COMPONENT   superbuild)

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

# ParaView expects this directory to exist.
install(CODE
  "file(MAKE_DIRECTORY \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/lib/paraview-${paraview_version}\")"
Ben Boeckel's avatar
Ben Boeckel committed
60
  COMPONENT   superbuild)