Imported Upstream version 2.8.11.2
[platform/upstream/cmake.git] / Tests / CMakeCommands / target_link_libraries / targetA.cpp
index 3c6472e..d1321a1 100644 (file)
@@ -1,12 +1,19 @@
 
 #include "depB.h"
 #include "depC.h"
+#include "depIfaceOnly.h"
 
-int main(int argc, char **argv)
+#include "subdirlib.h"
+
+int main(int, char **)
 {
   DepA a;
   DepB b;
   DepC c;
 
-  return a.foo() + b.foo() + c.foo();
+  DepIfaceOnly iface_only;
+
+  SubDirLibObject sd;
+
+  return a.foo() + b.foo() + c.foo() + iface_only.foo() + sd.foo();
 }