CMake/Tests/CustomCommand/generator.cxx

11 lines
168 B
C++

#include <stdio.h>
int main(int argc, char *argv[])
{
FILE *fp = fopen(argv[1],"w");
fprintf(fp,"int generated() { return 3; }\n");
fclose(fp);
return 0;
}