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.

31 lines
459 B

#include <iostream>
#include <fstream>
using namespace std;
int main() {
ofstream hpp("libC.hpp");
ofstream cpp("libC.cpp");
if (!hpp.is_open() || !cpp.is_open()) {
cerr << "Failed to open 'libC.hpp' or 'libC.cpp' for writing" << endl;
return 1;
}
hpp << R"cpp(
#pragma once
#include <string>
std::string getGenStr();
)cpp";
cpp << R"cpp(
#include "libC.hpp"
std::string getGenStr(void) {
return "GEN STR";
}
)cpp";
return 0;
}