summaryrefslogtreecommitdiff
path: root/Tests/CMakeCommands/target_link_libraries/targetC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CMakeCommands/target_link_libraries/targetC.cpp')
-rw-r--r--Tests/CMakeCommands/target_link_libraries/targetC.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/Tests/CMakeCommands/target_link_libraries/targetC.cpp b/Tests/CMakeCommands/target_link_libraries/targetC.cpp
new file mode 100644
index 000000000..a4ef6369d
--- /dev/null
+++ b/Tests/CMakeCommands/target_link_libraries/targetC.cpp
@@ -0,0 +1,16 @@
+
+#include "depG.h"
+
+#include "foo.h"
+#include "bar.h"
+
+#ifndef TEST_DEF
+#error Expected TEST_DEF definition
+#endif
+
+int main(int, char **)
+{
+ DepG g;
+
+ return g.foo();
+}