[CMake] How to specify out-of-source build/lib/bin directories

Matthias Schweinoch matthias.schweinoch at gmx.de
Thu Jan 17 05:47:38 EST 2008


Hi all,

I'm a new cmake user and I'm having a little trouble. Perhaps someone here can help me: I was wondering if it is possible to specify a build path manually within the toplevel CMakeLists.txt file? I did read the wiki about out-of-source build environments, but the examples all used ccmake for setting it up (or I missed it). The same applies to lib/bin paths, i.e. I would like to specify an out-of-source lib directory and an out-of-source bin directory to place the executables in... what would be the appropriate command for this?

Finally, I use doxygen for documentation. What would I need to add to the CMakeLists.txt file such that when I run 'make', the command 'doxygen Doxyfile' is executed in the toplevel source directory?

Thanks in advance for the help!

Matthias Schweinoch
-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger?did=10


More information about the CMake mailing list