[MOAB-dev] r1806 - MOAB/trunk

dcthomp at mcs.anl.gov dcthomp at mcs.anl.gov
Mon May 12 18:09:12 CDT 2008


Author: dcthomp
Date: 2008-05-12 18:09:12 -0500 (Mon, 12 May 2008)
New Revision: 1806

Modified:
   MOAB/trunk/CMakeLists.txt
Log:
ENH: Make this project work with CMake 2.6.
COMP: Add new files to build to keep up with autoconf.
COMP: Create MBCN_FCDefs.h as required.


Modified: MOAB/trunk/CMakeLists.txt
===================================================================
--- MOAB/trunk/CMakeLists.txt	2008-05-12 18:43:28 UTC (rev 1805)
+++ MOAB/trunk/CMakeLists.txt	2008-05-12 23:09:12 UTC (rev 1806)
@@ -1,5 +1,7 @@
 project( MOAB )
 
+  cmake_minimum_required( VERSION 2.4 )
+
   include( ${MOAB_SOURCE_DIR}/cmake/GetAcInitVersion.cmake )
   get_ac_init_version()
   set ( MOAB_VERSION_MAJOR  "${MAJOR_VERSION}"  )
@@ -14,7 +16,7 @@
     else ( MOAB_VERSION_MINOR EQUAL 99 )
       set ( MOAB_VERSION_STRING "${MOAB_VERSION_STRING} (beta)" )
     endif ( MOAB_VERSION_MINOR EQUAL 99 )
-  endif ( NOT DEFINED PATCH_VERSION )
+  endif ( DEFINED PATCH_VERSION )
 
   set ( CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${MOAB_SOURCE_DIR}/cmake" )
   set ( EXECUTABLE_OUTPUT_PATH ${MOAB_BINARY_DIR}/bin CACHE PATH "Path to executables" FORCE )
@@ -123,6 +125,7 @@
     MBBits.cpp
     MBCN.cpp
     MBCartVect.cpp
+    MBElemUtil.cpp
     MBHandleUtils.cpp
     MBMatrix3.cpp
     MBCore.cpp
@@ -143,6 +146,7 @@
     MeshTopoUtil.cpp
     PolyElementSeq.cpp
     ReadGmsh.cpp
+    ReadIDEAS.cpp
     ReadSTL.cpp
     ReadVtk.cpp
     ScdElementData.cpp
@@ -270,7 +274,17 @@
   endif ( MOAB_BUILD_DAGMC )
 
   # iMesh Babel
+  if ( MOAB_BUILD_IMESH )
+    option( MOAB_IMESH_FORTRAN "Should MOAB include iMesh FORTRAN bindings?" OFF )
+  endif ( MOAB_BUILD_IMESH )
 
+  if ( MOAB_IMESH_FORTRAN )
+    enable_language( Fortran )
+    # This determines FORTRAN calling conventions and defines FC_FUNC and FC_FUNC_
+    # to macros which can be used from C to call FORTRAN.
+    #include( ${MOAB_SOURCE_DIR}/cmake/FortranCallingConvention.cmake)
+  endif ( MOAB_IMESH_FORTRAN )
+
   include( ${MOAB_SOURCE_DIR}/cmake/AutoconfHeader.cmake )
   # Define some more variables so they will be substituted properly in the autoconf files.
   set( MB_VERSION        "\"${MOAB_VERSION}\"" )
@@ -283,6 +297,7 @@
 
   autoconf_header( ${MOAB_SOURCE_DIR}/MBVersion.h.in ${MOAB_BINARY_DIR}/MBVersion.h )
   autoconf_header( ${MOAB_SOURCE_DIR}/MBEntityHandle.h.in ${MOAB_BINARY_DIR}/MBEntityHandle.h )
+  autoconf_header( ${MOAB_SOURCE_DIR}/MBCN_FCDefs.h.in ${MOAB_BINARY_DIR}/MBCN_FCDefs.h )
 
 
 # Testing




More information about the moab-dev mailing list