This establishes that linking is used to propagate usage-requirements between targets in CMake code. The use of the target_link_libraries command as the API for this is chosen because introducing a new command would introduce confusion due to multiple commands which differ only in a subtle way.
17 lines
181 B
C++
17 lines
181 B
C++
|
|
#include "depG.h"
|
|
|
|
#include "foo.h"
|
|
#include "bar.h"
|
|
|
|
#ifndef TEST_DEF
|
|
#error Expected TEST_DEF definition
|
|
#endif
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
DepG g;
|
|
|
|
return g.foo();
|
|
}
|