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 ("${MYPRJ_SOURCE_DIR}/../../../usr/include/w32api")<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/<my-user>/myprj, that's why I am using <br>
<br> ${MYPRJ_SOURCE_DIR}/../../../usr/include/w32api<br><br>since "/" 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 "winbase.h". 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>