print version information in startup message

This commit is contained in:
Dimitri Stolnikov 2013-02-17 00:11:22 +01:00
parent ed253ffc1e
commit b74aeb108e
2 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,9 @@
#ifndef CONFIG_H_IN
#define CONFIG_H_IN
#define GR_OSMOSDR_VERSION "@VERSION@"
#define GR_OSMOSDR_LIBVER "@LIBVER@"
#cmakedefine ENABLE_OSMOSDR
#cmakedefine ENABLE_FCD
#cmakedefine ENABLE_FILE

View File

@ -113,7 +113,10 @@ osmosdr_source_c_impl::osmosdr_source_c_impl (const std::string &args)
dev_types.push_back("miri");
#endif
std::cerr << "gr-osmosdr supported device types: ";
std::cerr << "gr-osmosdr ("
<< GR_OSMOSDR_VERSION << " / " << GR_OSMOSDR_LIBVER
<< ") supported device types:" << std::endl;
std::cerr << " " << std::flush;
BOOST_FOREACH(std::string dev_type, dev_types)
std::cerr << dev_type << " ";
std::cerr << std::endl << std::flush;