Updated formatting of documentation plus a little reorganization.
[cmake.git] / Tests / OutOfSource / OutOfSourceSubdir / simple.cxx
blobd88c311f8e7a396ac87f7f132233d55b92829b27
1 #include <stdio.h>
2 #include <string.h>
4 #include "testlib.h"
5 #include "testdp.h"
7 extern int simple();
8 #ifndef NO_DEEPSRC
9 extern int simple2();
10 #endif
11 extern "C" int outlib();
13 int main ()
15 if(simple() != 123)
17 return -3;
19 if (strcmp(animal,"SIZZLING"))
21 fprintf(stderr,"Get definitions from a subdir did not work\n");
22 return -2;
24 if(TestLib() != 1.0)
26 return -1;
28 if(outlib() != 456)
30 return -4;
32 #ifndef NO_DEEPSRC
33 if(simple2() != 789)
35 return -5;
37 #endif
38 return 0;