installing a pre-built module and its various dependencies

Right, the module is only loadable, so the linker doesn’t care about it.

I would make a second INTERFACE target with the compilation requirements. You can then add this to Foo::Foo’s interface (for whatever it’s worth) and use it in any consuming bit. Calling it Foo::Headers or Foo::SDK is probably apt.

file(GET_RUNTIME_DEPENDENCIES) should work here.

1 Like