Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make a C++ project to copy its dependencies to the output folder?

I have some libs that are used by my C++ Visual Studio project. But they aren't copied to the output folder. How to add this step to the build process?

like image 963
Jader Dias Avatar asked Dec 02 '25 05:12

Jader Dias


2 Answers

Go to project properties and use Custom Build Step or Build events. Just use command line commands. You can use macros to specify paths.

like image 92
Nikola Smiljanić Avatar answered Dec 03 '25 19:12

Nikola Smiljanić


You can add external-projects on which your project depends to Project Properties->Common Properties->Framework and References.

No copying of libraries needed.

You can also change the output path of your library-projects to a path that is found by the linker.

like image 25
engf-010 Avatar answered Dec 03 '25 17:12

engf-010



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!