4 int main(int argc
, char *argv
[])
8 fprintf(stderr
, "Usage: %s <file1> <file2>\n", argv
[0]);
11 FILE *fp
= fopen(argv
[1],"w");
12 fprintf(fp
,"extern int wrapped_help();\n");
13 fprintf(fp
,"int wrapped() { return wrapped_help(); }\n");
15 fp
= fopen(argv
[2],"w");
16 fprintf(fp
,"int wrapped_help() { return 5; }\n");
19 /* The VS6 IDE passes a leading ".\\" in its variable expansion. */
20 # if defined(_MSC_VER) && _MSC_VER == 1200
21 # define CFG_DIR ".\\" CMAKE_INTDIR
23 # define CFG_DIR CMAKE_INTDIR
25 const char* cfg
= (argc
>= 4)? argv
[3] : "";
26 if(strcmp(cfg
, CFG_DIR
) != 0)
29 "Did not receive expected configuration argument:\n"
30 " expected [" CFG_DIR
"]\n"
31 " received [%s]\n", cfg
);