diff options
Diffstat (limited to 'cmake/sword_version_print.cpp')
-rw-r--r-- | cmake/sword_version_print.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/cmake/sword_version_print.cpp b/cmake/sword_version_print.cpp new file mode 100644 index 0000000..f9cc8e6 --- /dev/null +++ b/cmake/sword_version_print.cpp @@ -0,0 +1,24 @@ +/********* +* +* This file is part of BibleTime's source code, http://www.bibletime.info/. +* +* Copyright 1999-2008 by the BibleTime developers. +* The BibleTime source code is licensed under the GNU General Public License version 2.0. +* +**********/ + +/* + * Check if Sword's current version is equal or larger than the version given to the program (first commandline argument) + */ + +#include <iostream> +#include <swversion.h> + +#ifndef SWORD_VERSION_STR +#error SWORD_VERSION_STR not defined! +#endif + +int main() { + std::cout << (SWORD_VERSION_STR); + return 0; +} |