schrodinger / coordgenlibs

Schrodinger-developed 2D Coordinate Generation
BSD 3-Clause "New" or "Revised" License
42 stars 28 forks source link

feature request: export version to header #128

Open e-kwsm opened 10 months ago

e-kwsm commented 10 months ago

Something like:

// coordgen/CoordgenConfig.hpp
#define COORDGEN_MAJOR 3
#define COORDGEN_MINOR 0
#define COORDGEN_PATCH 2
#define COORDGEN_VERSION "3.0.2"

which enables

#include <iostream>
#include <coordgen/CoordgenConfig.hpp>

int main() {
  std::cout << COORDGEN_VERSION << std::endl;
}