#include-ing and linking against a library project automatically?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

#include-ing and linking against a library project automatically?

1,251 Views
Slaymaker
Contributor III

Is there a way to configure a library project to export a #include path, library search path, and library name so that just adding it as a dependency to another project (lib or executable) will automatically add that path and name to the dependent project?

I ask because I've gotten it working by manually adding the #include path, libpath, and name, but I'm wondering if I misconfigured the library project somehow because I've seen other IDEs that can do that (and implemented it in a another custom multi-project build system).

Thanks!

0 Kudos
Reply
4 Replies

1,175 Views
lpcxpresso_supp
NXP Employee
NXP Employee

See [1] for some automation around linking projects to libraries. Is the "Smart Update" wizard what you're looking for?

Regards,
MCUXpresso IDE Support

[1] https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/Creating-and-Linking-to-Library-Projects/m-p/469212

 

0 Kudos
Reply

1,224 Views
Slaymaker
Contributor III

Thanks, but that's how to manually configure it seemingly to work around an IDE bug.

I'm trying to see if this IDE can automatically configure it, like other IDEs can.

0 Kudos
Reply

1,209 Views
ErichStyger
Specialist I

I don't think what you mean or want is coming from the IDE, but from the build system?

So you simply might use CMake for this?

0 Kudos
Reply

1,241 Views
ErichStyger
Specialist I
0 Kudos
Reply