#include #include 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; }