Skip to content

Commit

Permalink
Put version into header file
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Reinhard committed Nov 26, 2017
1 parent 4509041 commit 0d7e76a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#include <future>
#include <vips/vips8>

#include "version.h"

extern "C" {
#include <libavutil/opt.h>
#include <libavutil/imgutils.h>
Expand Down Expand Up @@ -536,10 +538,9 @@ Opts getTifigOptions(cxxopts::Options& options)

void printVersion()
{
cout << "tifig 0.1.0" << endl;
cout << "tifig " << VERSION << endl;
}


int main(int argc, char* argv[])
{
// Disable colr and pixi boxes unknown warnings from libheif
Expand Down
6 changes: 6 additions & 0 deletions src/version.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef TIFIG_VERSION
#define TIFIG_VERSION

#define VERSION "0.2.0"

#endif //TIFIG_VERSION

0 comments on commit 0d7e76a

Please sign in to comment.