Jump to content

How to change default build output directory in Visual Studio 2013

Dobbsjr

You always want to set relative paths for your project. If you do not do this you can't move your project around. If you use relative paths only, you can copy your whole project onto any computer, and it should just work.
In a visual studio project, you bascially want to use the following file structure:

Solution folder

    .sln file

    extern folder   //libraries go in here
    Project folder
        bin  //compiled files go in here
        doc //documentation goes in here

        inc  //when writing a library, all public header files go in here
        src  //source code goes here

        .vcxproj file

For your project you can set the output directory to bin/
The intermediate directory to bin/$(Configuration)
You also want to set your working directory (which is under Debugging) to %(OutDir)

When including libraries, you put them into the extern folder. When then in the additional include directories and additional library directories, you can use a relative path that would look like this: ../extern/YOUR_LIBRARY_NAME/

I hope this helps. I you need more help, let me know.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×