<div dir="ltr"><div style>Include_directories incluye directorios y no ficheros:</div><div><br></div><div style>Echale un vistazo a este link:</div><a href="http://www.cmake.org/cmake/help/cmake2.6docs.html#command:include_directories">http://www.cmake.org/cmake/help/cmake2.6docs.html#command:include_directories</a><br>

<div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/2/17 jgandia <span dir="ltr">&lt;<a href="mailto:jaimerodriguezgandia@gmail.com" target="_blank">jaimerodriguezgandia@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hola muy buenas.<br>
<br>
Estoy empezando con cmake, con un manual que me he descargado de internet.<br>
<br>
necesito compilar mi Server.cpp y Printer.cpp  ambos tienen estos includes:<br>
<br>
#include &lt;Ice/Ice.h&gt;<br>
#include &lt;Printer.h&gt;<br>
<br>
<br>
he creado el siguiente CMakeLists.txt<br>
<br>
<br>
cmake_minimum_required(VERSION 2.6)<br>
<br>
SET(FILES Server.cpp Printer.cpp)<br>
SET(INCLUDES Printer.h)<br>
<br>
ADD_EXECUTABLE(server ${FILES})<br>
INCLUDE_DIRECTORIES({$INCLUDES})<br>
<br>
<br>
Aunque creo que no es la manera de hacerlo. al realizar el cmake .<br>
funciona todo correctamente, Cuando realizo el make es cuando me dice que no<br>
consigue encontrar la libreria de Printer.h.<br>
<br>
¿Como podría hacerlo? ¿ Y como puedo decirle que se instale directamente en<br>
/usr/bin para poder usarlo sin tenerlo en la misma carpetA? Saludos!!!<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://jderobot-developer-list.2315034.n4.nabble.com/Empezando-Con-CMAKE-tp4641064.html" target="_blank">http://jderobot-developer-list.2315034.n4.nabble.com/Empezando-Con-CMAKE-tp4641064.html</a><br>


Sent from the Jderobot Developer List mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Jde-developers mailing list<br>
<a href="mailto:Jde-developers@gsyc.es">Jde-developers@gsyc.es</a><br>
<a href="http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers" target="_blank">http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers</a><br>
</blockquote></div><br></div>