1 | // $Id: version.cc 2370 2010-12-11 04:00:49Z peter $ |
---|
2 | |
---|
3 | /* |
---|
4 | Copyright (C) 2008 Jari Häkkinen, Peter Johansson |
---|
5 | Copyright (C) 2009 Peter Johansson |
---|
6 | |
---|
7 | This file is part of the yat library, http://dev.thep.lu.se/yat |
---|
8 | |
---|
9 | The yat library is free software; you can redistribute it and/or |
---|
10 | modify it under the terms of the GNU General Public License as |
---|
11 | published by the Free Software Foundation; either version 3 of the |
---|
12 | License, or (at your option) any later version. |
---|
13 | |
---|
14 | The yat library is distributed in the hope that it will be useful, |
---|
15 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
17 | General Public License for more details. |
---|
18 | |
---|
19 | You should have received a copy of the GNU General Public License |
---|
20 | along with yat. If not, see <http://www.gnu.org/licenses/>. |
---|
21 | */ |
---|
22 | |
---|
23 | #include "Suite.h" |
---|
24 | |
---|
25 | #include "yat/utility/version.h" |
---|
26 | |
---|
27 | #include <boost/version.hpp> |
---|
28 | #include <gsl/gsl_version.h> |
---|
29 | |
---|
30 | int main(int argc, char* argv[]) |
---|
31 | { |
---|
32 | using namespace theplu::yat::utility; |
---|
33 | theplu::yat::test::Suite suite(argc, argv); |
---|
34 | |
---|
35 | suite.out() << "API version: " << YAT_VERSION << "\n"; |
---|
36 | suite.out() << " major: " << YAT_MAJOR_VERSION << "\n"; |
---|
37 | suite.out() << " minor: " << YAT_MINOR_VERSION << "\n"; |
---|
38 | suite.out() << " patch: " << YAT_PATCH_VERSION << "\n"; |
---|
39 | |
---|
40 | suite.out() << "ABI version: " << version() << "\n"; |
---|
41 | suite.out() << " major: " << major_version() << "\n"; |
---|
42 | suite.out() << " minor: " << minor_version() << "\n"; |
---|
43 | suite.out() << " patch: " << patch_version() << "\n"; |
---|
44 | |
---|
45 | suite.out() << "Boost API version: " << BOOST_LIB_VERSION << "\n"; |
---|
46 | suite.out() << "GSL API version: " << GSL_VERSION << "\n"; |
---|
47 | suite.out() << "GSL ABI version: " << gsl_version << "\n"; |
---|
48 | |
---|
49 | return suite.return_value(); |
---|
50 | } |
---|
51 | |
---|
52 | |
---|