[CMake] Why SET() not support regular expression ?

Alan W. Irwin irwin at beluga.phys.uvic.ca
Fri Jan 18 13:29:08 EST 2008


On 2008-01-18 13:43+0100 Yang, Y. wrote:

> Hi all.
>
> I just use CMake for two week. And I found it's very good tool.
> However, I just wonder that why in CMake the SET not support regular
> expression.
>
> For example, SET( MY_SRCS mydir/*.c)
>
> if CMake can do this, I don't have to modify the CMakeLists.txt every
> time when I add new files to mydir.

Search for the FILE(GLOB signature in the CMake documentation.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________


More information about the CMake mailing list