blob: abb8a4266e551ff5387259050f030cc9af887271 [file] [log] [blame]
#include <iostream>
#include <fstream>
using namespace std;
int main(int argc, const char *argv[]) {
if(argc != 3 || string(argv[1]) != "arg1" || string(argv[2]) != "arg2") {
cerr << argv[0] << " requires 2 args" << endl;
return 1;
}
ifstream in1("macro_name.txt");
ofstream out1("cmModLib.hpp");
out1 << "#define " << in1.rdbuf() << " = \"plop\"";
return 0;
}