diff --git a/src/Version.h b/src/Version.h new file mode 100644 index 0000000000000000000000000000000000000000..962a5182de641d44a4dfd076365b181fc91411f8 --- /dev/null +++ b/src/Version.h @@ -0,0 +1,7 @@ +// Version.h +#if !defined(VERSION_H) +#define VERSION_H 1 + +std::string version = "1.0.2"; + +#endif diff --git a/src/main.cpp b/src/main.cpp index bf4fb1a179c2de05a8729325d4cc509752597205..34823339ebf80fc11e78f2c6c2cd9df0bcf250d2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -37,9 +37,14 @@ // (Program Obviously used to Generate tango Object) //============================================================================= #include <tango.h> +#include <Version.h> int main(int argc,char *argv[]) { + if (std::string(argv[1]) == "--version"){ + cout << version << endl; + return(0); + } try { // Initialise the device server