summaryrefslogtreecommitdiff
path: root/cmake/sword_version_print.cpp
blob: f9cc8e6bac75de50cf185ab992a8fd4643267c66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;
}