The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
386 B
19 lines
386 B
5 years ago
|
#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;
|
||
|
}
|