OPTION(MEDCOUPLING_BUILD_DOC "Build MED doc." ON)
OPTION(MEDCOUPLING_BUILD_STATIC "Build MEDCoupling library in static mode." OFF)
OPTION(MEDCOUPLING_USE_64BIT_IDS "Size of IDs to refer cells and nodes. 32 bits when OFF (default), 64 bits when ON." OFF)
+
IF(${MEDCOUPLING_USE_MPI})
SET(USE_METIS_NOT_PARMETIS OFF)
ELSE()
# Set list of prerequisites
# =========================
-IF(MEDCOUPLING_USE_64BIT_IDS)
- ADD_DEFINITIONS("-DMEDCOUPLING_USE_64BIT_IDS")
-ENDIF(MEDCOUPLING_USE_64BIT_IDS)
+set(MEDCOUPLING_USE_64BIT_IDS_CPP_DEFINE)
+if(MEDCOUPLING_USE_64BIT_IDS)
+ set(MEDCOUPLING_USE_64BIT_IDS_CPP_DEFINE "#define MEDCOUPLING_USE_64BIT_IDS")
+endif(MEDCOUPLING_USE_64BIT_IDS)
IF(NOT MEDCOUPLING_MICROMED)
FIND_PACKAGE(SalomeHDF5 REQUIRED)
ADD_DEFINITIONS("-D_USE_MATH_DEFINES")
ENDIF(WIN32)
+INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR})
+
ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(adm_local)
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#if !defined(__MEDCOUPLING_VERSION_H__)
-#define __MEDCOUPLING_VERSION_H__
+#pragma once
/*!
Specify version of MEDCoupling, as follows
#define MEDCOUPLING_VERSION_STR "@MEDCOUPLING_VERSION@"
#define MEDCOUPLING_VERSION @MEDCOUPLING_XVERSION@
-#endif // __MEDCOUPLING_VERSION_H__
+// define MEDCOUPLING_USE_64BIT_IDS if effectly used at medcoupling compile time
+
+@MEDCOUPLING_USE_64BIT_IDS_CPP_DEFINE@
//
// Author : Anthony Geay (EDF R&D)
-#ifndef __MEDCOUPLING_MCTYPE_HXX__
-#define __MEDCOUPLING_MCTYPE_HXX__
+#pragma once
#include "MCIdType.hxx"
#define DataArrayInt DataArrayInt32
#define DataArrayIntIterator DataArrayInt32Iterator
}
-
-#endif