[CMake] source directories

Alexander Neundorf a.neundorf-work at gmx.net
Wed Dec 20 04:22:00 EST 2006


Hi,

Von: "Mehdi Rabah" <mehdi.rabah at gmail.com>

> Hi everyone,
> 
> I have another simple question : is there a way to tell cmake to search
> some
> directories for sources (not include files)
> Let's say I have:
> 
> add_executable(exec src/source1 src/source2)
> 
> and I'd prefer having somehting like this:
> 
> source_directories(./src)
> add_executable(exec source1 source2)
> 
> Is it possible ?

No, this is not possible, and I think this would lead to ambiguities in some cases.

Bye
Alex

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer


More information about the CMake mailing list