Thank you very much Andreas,<br><br>I did it and it worked.<br><br>Really appreciated your help.<br><br>Best Regards<br><br>Enrique<br><br><div class="gmail_quote">On Thu, Feb 17, 2011 at 4:54 PM, Andreas Pakulat <span dir="ltr"><<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On 17.02.11 15:12:28, Enrique Izaguirre wrote:<br>
> OK, I got it.<br>
> The example I saw in the book is also without defining FILES. Then I have to<br>
> set it to an initial value, that should be the path where the files are,<br>
> right?<br>
<br>
</div>Yes usually you setup a variable with the relative path to the sources<br>
of the target. I don't know what book you're reading but this simple<br>
usecase usually looks like this:<br>
<br>
set( MYEXEC_SRCS<br>
main.cpp<br>
subdir1/foo.cpp<br>
subdir2/bar.cpp<br>
baz.cpp<br>
)<br>
<br>
add_executable( myexec ${MYEXEC_SRCS} )<br>
<br>
Andreas<br>
<font color="#888888"><br>
--<br>
You possess a mind not merely twisted, but actually sprained.<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br>