Stephen Kelly b655865bbf target_link_libraries: Add PUBLIC/PRIVATE/INTERFACE keyword signature
Add a new signature to help populate INTERFACE_LINK_LIBRARIES and
LINK_LIBRARIES cleanly in a single call.  Add policy CMP0023 to control
whether the keyword signatures can be mixed with uses of the plain
signatures on the same target.
2013-07-24 11:52:44 -04:00

20 lines
265 B
C++

#include "depB.h"
#include "depC.h"
#include "depIfaceOnly.h"
#include "subdirlib.h"
int main(int, char **)
{
DepA a;
DepB b;
DepC c;
DepIfaceOnly iface_only;
SubDirLibObject sd;
return a.foo() + b.foo() + c.foo() + iface_only.foo() + sd.foo();
}