[Cmake] out-of-source build

Jeongnim Kim jnkim at ncsa . uiuc . edu
Fri, 05 Sep 2003 14:16:04 -0500


Hello.

I'm trying to use cmake to compile several applications and libraries.

My question is what is the best way to work with out-of-source build
to direct *.o files to other directories, preferably where the binary
is created. To be specific, I want to build foo-a and foo-b with distinct
compiler options and to avoid to having *.o files mixed with source files.

foo-a/
subdir1/
subdir2/
foo-b/
subdir1/
subdir2/

Thank you for your help.

Best wishes,
Jeongnim Kim

---------------------------------------------------------------
Jeongnim Kim                           e-mail: jnkim at uiuc . edu
NCSA                                   Tel: 217-244-6319 (NCSA)
Beckman Institute                           217-333-3324 (MCC)
405 N Mathews Av.                      Fax: 217-244-2909
Urbana, IL 61801
---------------------------------------------------------------