[Cmake] Output directory for build

Andy Cedilnik andy . cedilnik at kitware . com
23 Sep 2003 08:28:16 -0400


Hi Ondrej,

For libraries and executables is easy: LIBRARY_OUTPUT_PATH /
EXECUTABLE_OUTPUT_PATH. For object files it is a bit trickyer.

May I ask why do you need this? If this is so that you can delete object
files while not messing up source, then I suggest you consider
out-of-source build. What that means is that you create a build
directory and call cmake from there specifying the source directory.
Then you can delete the build directory without worrying about source.

			Andy

On Tue, 2003-09-23 at 08:19, Ondrej Svetlik wrote:
> Is there any possibility to change output directory? I need to have all
> obj files in one directory, all libraries in another and all executables
> in the third one.