-# Copyright (C) 2015-2020 CEA/DEN, EDF R&D
+# Copyright (C) 2015-2021 CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
PROJECT(MEDCoupling C CXX)
+IF (${CMAKE_VERSION} VERSION_GREATER_EQUAL 3.3)
+ cmake_policy(SET CMP0057 NEW)
+ IF (${CMAKE_VERSION} VERSION_GREATER_EQUAL 3.13)
+ cmake_policy(SET CMP0078 OLD)
+ ENDIF()
+ IF (${CMAKE_VERSION} VERSION_GREATER_EQUAL 3.14)
+ cmake_policy(SET CMP0086 OLD)
+ ENDIF()
+ENDIF()
+
+
# Versioning
# ===========
# Project name, upper case
STRING(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UC)
SET(${PROJECT_NAME_UC}_MAJOR_VERSION 9)
-SET(${PROJECT_NAME_UC}_MINOR_VERSION 5)
+SET(${PROJECT_NAME_UC}_MINOR_VERSION 7)
SET(${PROJECT_NAME_UC}_PATCH_VERSION 0)
SET(${PROJECT_NAME_UC}_VERSION
${${PROJECT_NAME_UC}_MAJOR_VERSION}.${${PROJECT_NAME_UC}_MINOR_VERSION}.${${PROJECT_NAME_UC}_PATCH_VERSION})
OPTION(MEDCOUPLING_BUILD_TESTS "Build MED tests." ON)
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)
+OPTION(MEDCOUPLING_USE_64BIT_IDS "Size of IDs to refer cells and nodes. 32 bits when OFF (default), 64 bits when ON." ON)
+
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)
-
IF(NOT MEDCOUPLING_MICROMED)
FIND_PACKAGE(SalomeHDF5 REQUIRED)
FIND_PACKAGE(SalomeMEDFile REQUIRED)
ADD_DEFINITIONS("-D_USE_MATH_DEFINES")
ENDIF(WIN32)
+INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR})
+
ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(adm_local)
# List of targets in this project we want to make visible to the rest of the world.
# They all have to be INSTALL'd with the option "EXPORT ${PROJECT_NAME}TargetGroup"
SET(_${PROJECT_NAME}_exposed_targets
- interpkernel medcouplingcpp medcouplingremapper)
+ interpkernel medcouplingcpp medcouplingremapper medicoco)
IF(NOT MEDCOUPLING_MICROMED)
LIST(APPEND _${PROJECT_NAME}_exposed_targets medloader)