repo.or.cz
/
cmake.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Updated formatting of documentation plus a little reorganization.
[cmake.git]
/
Tests
/
OutOfSource
/
OutOfSourceSubdir
/
simple.cxx
blob
d88c311f8e7a396ac87f7f132233d55b92829b27
1
#include <stdio.h>
2
#include <string.h>
3
4
#include
"testlib.h"
5
#include
"testdp.h"
6
7
extern
int
simple
();
8
#ifndef NO_DEEPSRC
9
extern
int
simple2
();
10
#endif
11
extern
"C"
int
outlib
();
12
13
int
main
()
14
{
15
if
(
simple
() !=
123
)
16
{
17
return
-
3
;
18
}
19
if
(
strcmp
(
animal
,
"SIZZLING"
))
20
{
21
fprintf
(
stderr
,
"Get definitions from a subdir did not work
\n
"
);
22
return
-
2
;
23
}
24
if
(
TestLib
() !=
1.0
)
25
{
26
return
-
1
;
27
}
28
if
(
outlib
() !=
456
)
29
{
30
return
-
4
;
31
}
32
#ifndef NO_DEEPSRC
33
if
(
simple2
() !=
789
)
34
{
35
return
-
5
;
36
}
37
#endif
38
return
0
;
39
}