summaryrefslogtreecommitdiffstats
path: root/test cases/cmake/4 code gen/subprojects/cmCodeGen/main.cpp
blob: 5b7fed2b9ca2214a9a2eb165d00427f683f3746d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <iostream>
#include <fstream>

using namespace std;

int main(int argc, const char *argv[]) {
  if(argc < 2) {
    cerr << argv[0] << " requires an output file!" << endl;
    return 1;
  }
  ofstream out(argv[1]);
  out << R"(
#include "test.hpp"

std::string getStr() {
  return "Hello World";
}
)";

  return 0;
}