[CMake] use of wildcard
Jean-Christophe Roux
jcxxr at yahoo.com
Tue Feb 6 19:08:17 EST 2007
Thank you very much!
----- Original Message ----
From: Kevin Tucker <ktucker at birdstep.com>
To: Jean-Christophe Roux <jcxxr at yahoo.com>; cmake at cmake.org
Sent: Tuesday, February 6, 2007 7:06:01 PM
Subject: RE: [CMake] use of wildcard
<!--
_filtered {font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
_filtered {font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:blue;
text-decoration:underline;}
p
{
margin-right:0in;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman";}
code
{font-family:"Courier New";}
pre
{margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle17
{
font-family:Arial;
color:navy;}
_filtered {
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{}
_filtered {
}
_filtered {
text-indent:-.25in;
font-family:Symbol;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
-->
Found this documentation:
AUX_SOURCE_DIRECTORY:
Find all source files in a directory.
AUX_SOURCE_DIRECTORY(dir VARIABLE)
Collects the names of all the source files in the
specified directory and stores the list in the variable provided. This command
is intended to be used by projects that use explicit template instantiation.
Template instantiation files can be stored in a "Templates"
subdirectory and collected automatically using this command to avoid manually
listing all instantiations.
It is tempting to use this command to avoid writing
the list of source files for a library or executable target. While this seems
to work, there is no way for CMake to generate a build system that knows when a
new source file has been added. Normally the generated build system knows when
it needs to rerun CMake because the CMakeLists.txt file is modified to add a
new source. When the source is just added to the directory without modifying
this file, one would have to manually rerun CMake to generate a build system
incorporating the new file.
From:
cmake-bounces+ktucker=birdstep.com at cmake.org
[mailto:cmake-bounces+ktucker=birdstep.com at cmake.org] On Behalf Of Jean-Christophe Roux
Sent: Tuesday, February 06, 2007
3:35 PM
To: cmake at cmake.org
Subject: [CMake] use of wildcard
Hello,
How do I capture every file of a folder in one command? For instance, instead
of
set(SOURCE_FILES a.cpp b.cpp ... zzz.cpp)
I'd like to write something like:
set(SOURCE_FILES dir1/* dir2/*.cpp)
that would save a lot of typing and maintenance.
Thanks for any clue
Get
your own web address.
Have a HUGE year through Yahoo!
Small Business.
____________________________________________________________________________________
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070206/24c54ab8/attachment.html
More information about the CMake
mailing list