<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
You may want to look at the <div><br class="webkit-block-placeholder"></div><div>file(GLOB variable [RELATIVE path] [globbing expressions]...)</div><div><br class="webkit-block-placeholder"></div><div>or </div><div><br class="webkit-block-placeholder"></div><div><div>  file(GLOB_RECURSE variable [RELATIVE path] </div><div>       [globbing expressions]...)</div><div><br class="webkit-block-placeholder"></div><div>if you do a cmake --help-command file  a print out of the documentation for that command will be listed.</div><div><br class="webkit-block-placeholder"></div><div>Also, </div><div>  Some projects use the following as the way to get source files:</div><div><br class="webkit-block-placeholder"></div><div>SET (MyProject_SRCS   SomeFile.cpp  SomeOtherFile.cxx  lib/SomeLibFile.cpp )</div><div><br class="webkit-block-placeholder"></div><div>ADD_LIBRARY(VSEngine ${MyProject_SRCS})</div><div><br class="webkit-block-placeholder"></div><div>That will default to a static library. If you want a shared library:</div><div><br class="webkit-block-placeholder"></div><div>ADD_LIBRARY(VSEngine SHARED ${MyProject_SRCS})</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Bitstream Vera Sans; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">-- </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Mike Jackson<br></div><br class="Apple-interchange-newline"></span> </div><br><div><div>On Feb 29, 2008, at 11:37 AM, Arlen Cox wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div>1.  Is there some way to use wildcards when specifying files for a library?  Something like this:</div><div>add_library(VSEngine *.cpp)</div><div><br class="webkit-block-placeholder"></div><div>That particular line doesn't work.  I tried, but there must be a way that I can add a file to a project without having to modify the makefil</div></span></blockquote></div><br></div></body></html>