summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeCommands/target_link_libraries/depB.cpp
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2011-10-07 00:41:37 (GMT)
committerBrad King <brad.king@kitware.com>2011-11-22 21:52:35 (GMT)
commit914382224d34cfb86a67c8191b6e7b3a3e918f88 (patch)
treef5796b3ff7095e8e0fad805fe219aead007b57d3 /Tests/CMakeCommands/target_link_libraries/depB.cpp
parentcf64218eeb7dbe8a0d71292c42df63c4cb982fed (diff)
downloadCMake-914382224d34cfb86a67c8191b6e7b3a3e918f88.zip
CMake-914382224d34cfb86a67c8191b6e7b3a3e918f88.tar.gz
CMake-914382224d34cfb86a67c8191b6e7b3a3e918f88.tar.bz2
target_link_libraries: Add LINK_(PUBLIC|PRIVATE) options
Makes it possible to specify the link dependencies and link interfaces in one command without repetition.
Diffstat (limited to 'Tests/CMakeCommands/target_link_libraries/depB.cpp')
-rw-r--r--Tests/CMakeCommands/target_link_libraries/depB.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/CMakeCommands/target_link_libraries/depB.cpp b/Tests/CMakeCommands/target_link_libraries/depB.cpp
new file mode 100644
index 0000000..97e5be2
--- /dev/null
+++ b/Tests/CMakeCommands/target_link_libraries/depB.cpp
@@ -0,0 +1,11 @@
+
+#include "depB.h"
+
+#include "depA.h"
+
+int DepB::foo()
+{
+ DepA a;
+
+ return 0;
+}