[CMake] include_directories per target
John Drescher
drescherjm at gmail.com
Wed May 13 09:03:39 EDT 2009
On Wed, May 13, 2009 at 8:50 AM, <David.Karr at l-3com.com> wrote:
> Olivier Delannoy <olivier.delannoy at gmail.com> wrote:
>> I would like to set include_directories on a per target basis. I
>> understand that the INCLUDE_DIRECTORIES property is currently on a per
>> folder basis. It is a bit of a problem as I would like to flatten my
>> build and have all my targets generated in a single destination
>> folder. Is there any way to achieve this currently?
>
> The "per folder" basis refers to the source directories or folders. You
> don't need to flatten the entire source of your project in order to put
> the built libraries and executables in one directory. Instead, direct
> the output of each target to the common directory.
That would be my suggestion as I have spent a lot of time taking flat
src structures and making folders so I can organize my code..
John
More information about the CMake
mailing list