cmb.cmake 2.34 KB
Newer Older
1 2
set(paraview_dir ${SuperBuild_BINARY_DIR}/paraview/src/paraview-build)
set(vtk_dir ${SuperBuild_BINARY_DIR}/paraview/src/paraview-build/VTK)
3
set(smtk_dir ${SuperBuild_BINARY_DIR}/install/lib/cmake/SMTK)
4 5 6

if (__BUILDBOT_INSTALL_LOCATION)
  set(paraview_dir <INSTALL_DIR>/lib/cmake/paraview-4.3)
7
  set(smtk_dir <INSTALL_DIR>/lib/cmake/SMTK)
8 9
  set(vtk_dir <INSTALL_DIR>/lib/cmake/paraview-4.3)
endif ()
10

11 12
set(CMB_TEST_DATA_ROOT "" CACHE PATH "Location of CMB's testing data")

13
add_external_project_or_just_build_dependencies(cmb
14
  DEPENDS boost remus vxl kml gdal qt python paraview molequeue smtk
15
  DEPENDS_OPTIONAL moab triangle
16 17
  CMAKE_ARGS
    ${extra_cmake_args}
18
    -DKML_DIR:PATH=<INSTALL_DIR>
19
    -DGDAL_DIR:PATH=<INSTALL_DIR>
20
    -DParaView_DIR:PATH=${paraview_dir}
21
    -DSMTK_DIR:PATH=${smtk_dir}
22
    -DVTK_DIR:PATH=${vtk_dir}
23
    -DMoleQueue_DIR:PATH=<INSTALL_DIR>
24
    -DCMB_TEST_PLUGIN_PATHS:STRING=<INSTALL_DIR>/${smtk_libdir}
25
    -DCMB_TEST_DATA_ROOT:PATH=${CMB_TEST_DATA_ROOT}
26

27 28
    #specify semi-colon separated paths for session plugins
    -DCMB_TEST_PLUGIN_PATHS:STRING=<INSTALL_DIR>/lib
29 30
    #specify what mesh workers we should build
    -DBUILD_TRIANGLE_MESH_WORKER:BOOL=${triangle_ENABLED}
31

32 33 34
    # specify the apple app install prefix. No harm in specifying it for all
    # platforms.
    -DMACOSX_APP_INSTALL_PREFIX:PATH=<INSTALL_DIR>/Applications
35
)
36

37 38
#special mac only script to install plugin for paraview
if(APPLE)
39
  include(cmb_version)
40 41 42
  add_external_project_step(install_cmb_paraview_plugin
    COMMENT "Fixing missing include files."
    COMMAND  ${CMAKE_COMMAND}
43
      -DBUILD_SHARED_LIBS:BOOL=ON
44 45 46
      -DINSTALL_DIR:PATH=<INSTALL_DIR>
      -DCMB_BINARY_DIR:PATH=${SuperBuild_BINARY_DIR}/cmb/src/cmb-build
      -DTMP_DIR:PATH=<TMP_DIR>
47
      -DCMB_VERSION:STRING=${cmb_version}
48 49
      -P ${CMAKE_CURRENT_LIST_DIR}/apple/install_cmb_paraview_plugin.cmake
    DEPENDEES install)
50 51 52 53 54 55 56 57 58 59 60 61 62

  #special mac only script to install smtk plugins for cmb
  add_external_project_step(install_smtk_cmb_plugins
    COMMENT "installing smtk plugins for cmb."
    COMMAND  ${CMAKE_COMMAND}
      -DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE}
      -DBUILD_SHARED_LIBS:BOOL=ON
      -DINSTALL_DIR:PATH=<INSTALL_DIR>
      -DSMTK_BIN_DIR:PATH=${install_location}
      -DTMP_DIR:PATH=<TMP_DIR>
      -P ${CMAKE_CURRENT_LIST_DIR}/apple/install_smtk_cmb_plugin.cmake
    DEPENDEES install)

63
endif()