Added two #defines that state the gromacs API + program version.
authorSander Pronk <pronk@cbr.su.se>
Tue, 2 Oct 2012 13:27:46 +0000 (15:27 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Wed, 3 Oct 2012 19:14:08 +0000 (21:14 +0200)
commitcb3ecab66a98a453af26fae324ba2525dd22494f
tree0a493bc1f8e6df7647b087abe485acd377926ba6
parent51e50b82ffbd3670740a3548a5eb0bf7f0691de5
Added two #defines that state the gromacs API + program version.

Added two #defines in a new CMake-generated header file version.h:
GMX_API_VERSION, and GMX_VERSION so third-party tools can provide some
backward compatibility through

  #if !defined(GMX_API_VERSION) || (GMX_API_VERSION < 40600)
    ....  <do 4.5 specific stuff>
  #elif (GMX_API_VERSION < 40700)
    ....  <do 4.6 specific stuff>
  #endif

For now (pre-5.0), version.h is included in typedefs.h, which should
already be included in most gromacs-compatible code.

The API version is a separate CMake variable that currently gets its
value from the major+minor release version.

Change-Id: I9898cf378216d63c1456ce6566a2e42774fc1a0c
CMakeLists.txt
include/CMakeLists.txt
include/gmx_header_config.h.cmakein
include/sysstuff.h
include/version.h.cmakein [new file with mode: 0644]
src/gmxlib/version.h