[MOAB-dev] r5040 - in MOAB/trunk: . tools/vtkMOABReader

tautges at mcs.anl.gov tautges at mcs.anl.gov
Wed Jun 29 13:43:25 CDT 2011


Author: tautges
Date: 2011-06-29 13:43:25 -0500 (Wed, 29 Jun 2011)
New Revision: 5040

Added:
   MOAB/trunk/tools/vtkMOABReader/CMakeLists.txt.in
Modified:
   MOAB/trunk/configure.ac
   MOAB/trunk/tools/vtkMOABReader/README
Log:
Changing paraview plugin build process to execute from the build directory,
not the source directory.



Modified: MOAB/trunk/configure.ac
===================================================================
--- MOAB/trunk/configure.ac	2011-06-27 21:38:09 UTC (rev 5039)
+++ MOAB/trunk/configure.ac	2011-06-29 18:43:25 UTC (rev 5040)
@@ -1139,6 +1139,7 @@
                  tools/qvdual/Makefile
                  tools/vtkMOABReader/Makefile
                  tools/dagmc/Makefile
+		 tools/vtkMOABReader/CMakeLists.txt
                  doc/Makefile
                  doc/user.dox
                  examples/Makefile

Added: MOAB/trunk/tools/vtkMOABReader/CMakeLists.txt.in
===================================================================
--- MOAB/trunk/tools/vtkMOABReader/CMakeLists.txt.in	                        (rev 0)
+++ MOAB/trunk/tools/vtkMOABReader/CMakeLists.txt.in	2011-06-29 18:43:25 UTC (rev 5040)
@@ -0,0 +1,13 @@
+SET(MOAB_DIR "@abs_builddir@/../.." CACHE PATH "MOAB base directory")
+if (MOAB_DIR)
+  INCLUDE_DIRECTORIES(${MOAB_DIR}/include @srcdir@)
+  LINK_DIRECTORIES(${MOAB_DIR}/lib)
+  LINK_LIBRARIES(MOAB)
+CMAKE_MINIMUM_REQUIRED(VERSION 2.6.3)
+FIND_PACKAGE(ParaView REQUIRED)
+INCLUDE(${PARAVIEW_USE_FILE})
+ ADD_PARAVIEW_PLUGIN(vtkMOABReader "4.0" 
+   SERVER_MANAGER_XML @srcdir@/vtkMOABReader.xml
+   SERVER_MANAGER_SOURCES @srcdir@/vtkMOABReader.cxx 
+   GUI_RESOURCE_FILES @srcdir@/vtkMOABReaderGUI.xml)
+endif (MOAB_DIR)

Modified: MOAB/trunk/tools/vtkMOABReader/README
===================================================================
--- MOAB/trunk/tools/vtkMOABReader/README	2011-06-27 21:38:09 UTC (rev 5039)
+++ MOAB/trunk/tools/vtkMOABReader/README	2011-06-29 18:43:25 UTC (rev 5040)
@@ -2,18 +2,19 @@
 - build your version of MOAB; YOU MUST ENABLE SHARED LIBS IN MOAB, since running a paraview plugin requires
   a shared lib and some of MOAB's dependencies (e.g. hdf5) should be the same ones used by Paraview.
   (Note, I haven't tested this, but maybe you can get away with building MOAB static but the plugin shared)
+- install MOAB (needed so the cmake-based build can file MOAB's header files and libs)
 - download and build Paraview from www.paraview.org; for my build, I turn on python (PARAVIEW_ENABLE_PYTHON=ON), 
   point hdf5 to the same one used with MOAB (HDF5_INCLUDE_DIR=/usr/include, HDF5_LIBRARY=/usr/lib/libhdf5.so),
   and the rest of the settings the default ones.
-- In this directory, run 'ccmake .'; point MOAB_DIR to the MOAB install location, and ParaView_DIR to
-  THE PARAVIEW BUILD DIRECTORY (NOT the ParaView source directory); specifically, this is
-  the directory containing the ParaViewConfig.cmake file.  Configure, then generate.
+- In the <build_dir>/tools/vtkMOABReader directory, run 'ccmake .'; point MOAB_DIR to the MOAB install 
+  location, and ParaView_DIR to THE PARAVIEW BUILD DIRECTORY (NOT the ParaView source directory); 
+  specifically, this is the directory containing the ParaViewConfig.cmake file.  Configure, then generate.
 - run make; this should compile a 'libvtkMOABReader.so' shared library file, which serves


More information about the moab-dev mailing list