Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Change the Build Directory with Managed Build
Change the Build Directory with Managed Build [message #688863] Sat, 25 June 2011 22:07 Go to next message
Eclipse UserFriend
Hello.

I have a directory tree like the following:

/Project
  /src
    main.cpp
    Class1.cpp
    ...
  /bin
  /Debug
    Project (Executable)
    src/
      main.o
      Class1.o
      ...
  /lib


My source files are in /src, and I am using Eclipse "Internal Builder" to compile on Ubuntu Linux 11.04. It's working well, except that, as you can see in the above tree, my build places the build artifacts into /Project/Debug (assuming I am using the Debug configuration). What I would like is for the builder to place the build artifacts in /bin/Debug. So, I want my project tree to look like:

/Project
  /src
    main.cpp
    Class1.cpp
    ...
  /bin
    /Debug
      Project (Executable)
      src/
        main.o
        Class1.o
        ...
  /lib


I can't seem to figure out how to do this with the internal builder. I could, of course, switch to the external builder, but then, unless I'm mistaken, I'd have to constantly be updating my Makefiles whenever I add a source file or a library, etc... So, I'd prefer not to do this (I really like how Eclipse handles everything for me).

We're just starting what is going to be a fairly large project, and the benefits of Eclipse keeping track of the source files, rather than me having to remember to edit Makefiles (along with the Makefiles not cluttering up my source tree) is a huge boon.

Thanks for any insight you can provide.

~Scott
Re: Change the Build Directory with Managed Build [message #689207 is a reply to message #688863] Mon, 27 June 2011 03:19 Go to previous messageGo to next message
Eclipse UserFriend
This problem was discussed and a solution was proposed a while ago in this forum. Please use the search box.
Re: Change the Build Directory with Managed Build [message #689524 is a reply to message #689207] Mon, 27 June 2011 15:07 Go to previous messageGo to next message
Eclipse UserFriend
Could you point me to this discussion? I tried the search bar, along with google, and neither came up with results. Perhaps I'm not using the correct search terms.
Re: Change the Build Directory with Managed Build [message #689675 is a reply to message #689524] Tue, 28 June 2011 02:56 Go to previous message
Eclipse UserFriend
Scott Johnson wrote on Mon, 27 June 2011 21:07
Could you point me to this discussion? I tried the search bar, along with google, and neither came up with results. Perhaps I'm not using the correct search terms.

http://www.eclipse.org/forums/index.php/m/664609/?srch=output+location#msg_664609
Previous Topic:Wascana - or should I rather follow the mingw way?
Next Topic:Profiling with Eclipse
Goto Forum:
  


Current Time: Wed May 14 20:33:48 EDT 2025

Powered by FUDForum. Page generated in 0.02835 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top