On Dec 3, 2009, at 3:11 PM, Rodolfo Schulz de Lima wrote:

I'm interested to know how they manage this. But even with if you run
make with -C to change to the build directory, the executable would be
generated there. This feels awkward when you are used to in-source
builds. Inside vi I usually do ":make" then ":!./progname".

So, eclipse is this way. It wants to look for the makefiles in the Source directory. As a matter of consistency I ALWAYS name my build directories "Build". So in Eclipse I have the following:

cmake -C ${workspace_loc}/${project_name}/Build -j 16 VERBOSE=1

And the executables (as setup in the Cmake files) are always built into Build/Bin.

so I guess you could do
":make -C Build"
":!./Build/Bin/progname"

It is all about being consistent.

--
Mike Jackson
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to