CMake/Tests/CustomCommand/foo.in

33 lines
412 B
Plaintext
Raw Normal View History

2003-06-03 18:34:15 +04:00
#include "doc1.h"
#include "foo.h"
#include <stdio.h>
2003-06-03 18:34:15 +04:00
int generated();
int wrapped();
#include "subdir/subdir.h"
#ifndef SUBDIR_DEF
# error SUBDIR_DEF not defined
#endif
2003-06-03 18:34:15 +04:00
int main ()
{
if (generated()*wrapped()*doc() == 3*5*7)
2003-06-03 18:34:15 +04:00
{
FILE* fin = fopen("not_included.h", "r");
if(fin)
{
fclose(fin);
return 0;
}
else
{
return -2;
}
2003-06-03 18:34:15 +04:00
}
2003-06-03 18:34:15 +04:00
return -1;
}