Jader Dias
Jader Dias

Reputation: 90603

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?

Upvotes: 3

Views: 2708

Answers (4)

engf-010
engf-010

Reputation: 3929

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.

Upvotes: 2

Nikola Smiljanić
Nikola Smiljanić

Reputation: 26863

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

Upvotes: 4

Edward Strange
Edward Strange

Reputation: 40895

You add a post-build step to do so.

Upvotes: -1

agb
agb

Reputation: 1

If you need them to be copied, why not copy them manually? If you need them to build your application, you just need to add their path in the AdditionalLibraryDirectories and the libraries themselves to the AdditionalDependencies.

Upvotes: -1

Related Questions