#645 Added cv::getBuildInformation function (with sample) to get OpenCV build configuration

This commit is contained in:
Andrey Kamaev
2012-04-06 15:43:20 +00:00
parent 89338a38af
commit 1c1c6b98f6
6 changed files with 67 additions and 13 deletions

View File

@@ -410,6 +410,14 @@ int getNumberOfCPUs(void)
#endif
}
const std::string& getBuildInformation()
{
static std::string build_info =
#include "version_string.inc"
;
return build_info;
}
string format( const char* fmt, ... )
{
char buf[1 << 16];