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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

2,145件の閲覧回数
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 件の賞賛
返信
4 返答(返信)

2,069件の閲覧回数
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 件の賞賛
返信

2,118件の閲覧回数
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 件の賞賛
返信

2,103件の閲覧回数
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 件の賞賛
返信

2,135件の閲覧回数
ErichStyger
Specialist I
0 件の賞賛
返信