-
Notifications
You must be signed in to change notification settings - Fork 353
Expand file tree
/
Copy pathopenrave-config.cpp.in
More file actions
29 lines (29 loc) · 876 Bytes
/
openrave-config.cpp.in
File metadata and controls
29 lines (29 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// compiler options program for Microsoft Visual Studio C++
#include <string>
#include <iostream>
using namespace std;
int main(int argc,char** argv)
{
char* usage = "Usage: openrave-config.exe [--boost-version] [--version] [--qt-version]";
if( argc <= 1 ) {
cout << usage << endl;
return 1;
}
for(int i = 1; i < argc; ++i) {
string s = argv[i];
if( s == "--boost-version" ) {
cout << "@Boost_MAJOR_VERSION@.@Boost_MINOR_VERSION@.@Boost_PATCH_VERSION@" << endl;
}
else if( s == "--version" ) {
cout << "@OPENRAVE_VERSION@" << endl;
}
else if( s == "--qt-version" ) {
cout << "@QT_VERSION_MAJOR@.@QT_VERSION_MINOR@.@QT_VERSION_PATCH@" << endl;
}
else {
cout << usage << endl;
return 1;
}
}
return 0;
}