Hello again,<br><br>I tried several ways but I cannot make it work. The only thing I need to do is to add a folder which contains a windows header file, in order that it be included in the build.<br>There must be a simple way to do it. Could you help?<br>
Maybe if you have an example or something similar.<br><br>Thanks<br><br>Enrique<br><br><br><br><div class="gmail_quote">On Tue, Mar 1, 2011 at 1:20 PM, Enrique Izaguirre <span dir="ltr"><<a href="mailto:enrique.izaguirre@gmail.com">enrique.izaguirre@gmail.com</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;">Thank you very much. I'll try that.<br><br>Best Regards<br><font color="#888888"><br>Enrique</font><div>
<div></div><div class="h5"><br><br><div class="gmail_quote">On Tue, Mar 1, 2011 at 1:18 PM, John Drescher <span dir="ltr"><<a href="mailto:drescherjm@gmail.com" target="_blank">drescherjm@gmail.com</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>On Tue, Mar 1, 2011 at 2:15 PM, Enrique Izaguirre<br>
<<a href="mailto:enrique.izaguirre@gmail.com" target="_blank">enrique.izaguirre@gmail.com</a>> wrote:<br>
> Sorry, I didn't explain correctly.<br>
><br>
> All the source files are in variable ${hostFiles}<br>
> and I generated and executable using add_executable (myprj ${hostFiles})<br>
> now I need to add the w32api folder from Windows, which has header files<br>
> called from one of the source files contained in ${hostFiles} and are<br>
> located in<br>
><br>
> ${MYPRJ_SOURCE_DIR}/../../../usr/include/w32api<br>
><br>
> How can I do this?<br>
><br>
<br>
</div>You add the appropriate<br>
<br>
include_directories()<br>
<br>
command in CMake. If that header requires linking to a Microsoft<br>
library then you do add the Microsoft library to the<br>
target_link_libraries not the header file.<br>
<font color="#888888"><br>
John<br>
</font></blockquote></div><br>
</div></div></blockquote></div><br>