Hello,<br><br>I am trying to include a windows header file in my build. <br>The simplest way I found is to add the following in the main CMakeLists.txt file:<br><br>include_directories (&quot;${MYPRJ_SOURCE_DIR}/../../../usr/include/w32api&quot;)<br>
add_library (w32api w32api/winbase.h)<br><br>add_executable (myprj ${hostFiles})<br>target_link_libraries (myprj w32api)<br><br><br>I am working in Cygwin, and my project is in /home/&lt;my-user&gt;/myprj, that&#39;s why I am using <br>
<br> ${MYPRJ_SOURCE_DIR}/../../../usr/include/w32api<br><br>since &quot;/&quot; is the root in my cygwin system and the file I want is in /usr/include/w32api<br><br>but when running cmake I get the following error:<br><br>
CMake Error in CMakeLists.txt:<br>  Cannot find source file &quot;winbase.h&quot;.  Tried extensions .c .C .c++ .cc .cpp<br>  .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx<br><br>I have not been able to find out what is going on. Could you help please?<br>
<br>Best Regards<br><br>Enrique<br>