moab.cmake 760 Bytes
Newer Older
1 2 3 4 5 6 7 8

#reset back the c/cppflag to the pre netcdf values.
#this works since the only project that depends on netcdf is moab
if (build-projects)
  set (cppflags "${pre_netcdf_cpp_flags}")
  set (cflags "${pre_netcdf_c_flags}")
endif()

Jacob Becker's avatar
Jacob Becker committed
9 10 11 12
#set(cgm_find_flags )
#if(cgm_ENABLED)
#  set(cgm_find_flags "-DCGM_CFG:PATH=${SuperBuild_BINARY_DIR}/cgm/src/cgm/cgm.make")
#endif()
13
add_external_project(moab
Ben Boeckel's avatar
Ben Boeckel committed
14
  DEPENDS hdf5 netcdf netcdfcpp
Jacob Becker's avatar
Jacob Becker committed
15
#  DEPENDS_OPTIONAL cgm
16 17 18
  CMAKE_ARGS
    -DBUILD_SHARED_LIBS:BOOL=OFF
    -DMOAB_USE_SZIP:BOOL=ON
Jacob Becker's avatar
Jacob Becker committed
19
    -DMOAB_USE_CGM:BOOL=OFF
20 21 22 23 24 25 26
    -DMOAB_USE_CGNS:BOOL=OFF
    -DMOAB_USE_MPI:BOOL=OFF
    -DMOAB_USE_HDF:BOOL=ON
    -DMOAB_USE_NETCDF:BOOL=ON
    -DMOAB_ENABLE_TESTING:BOOL=ON #build can't handle this being disabled
    ${cgm_find_flags}
)