added: give IFEM a version

git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1866 e10b68d5-8a6e-419e-a041-bce267b0401d
This commit is contained in:
akva 2012-08-16 15:26:02 +00:00 committed by Knut Morten Okstad
parent 5d3168ab4b
commit 053ac8518f
2 changed files with 27 additions and 0 deletions

View File

@ -1,6 +1,13 @@
PROJECT(IFEM)
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
SET(IFEM_VERSION_MAJOR 0)
SET(IFEM_VERSION_MINOR 9)
SET(IFEM_VERSION_PATCH 0)
# Generate header with version info
CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/src/Utility/IFEM.h.in
${PROJECT_SOURCE_DIR}/src/Utility/IFEM.h)
# Required defines (well, PROFILE_LEVEL is not actually required, but...)
SET(CMAKE_CXX_FLAGS "-Dreal=double -DepsZ=1.0e-12 -DPROFILE_LEVEL=3")

20
src/IFEM.h.in Normal file
View File

@ -0,0 +1,20 @@
//==============================================================================
//!
//! \file IFEM.h
//!
//! \date Aug 08 2012
//!
//! \author Arne Morten Kvarving / SINTEF
//!
//! \brief Initialization of the IFEM library.
//!
//==============================================================================
#ifndef IFEM_H_
#define IFEM_H_
#define IFEM_VERSION_MAJOR @IFEM_VERSION_MAJOR@ //!< Major library version
#define IFEM_VERSION_MINOR @IFEM_VERSION_MINOR@ //!< Minor library version
#define IFEM_VERSION_PATCH @IFEM_VERSION_PATCH@ //!< Patch library version
#endif