Hi Witold.<br><br>Using RELATIVE does not change where the files are looked for, only how they are reported. I believe you need this:<br><br>file(GLOB Demo_HEADERS RELATIVE ${CMAKE_SOURCE_DIR}/include "include/*.h")<br>
<br>Hope this help.<br><br>Petr<br><br><div class="gmail_quote">On Tue, Oct 9, 2012 at 9:34 AM, Witold E Wolski <span dir="ltr"><<a href="mailto:wewolski@gmail.com" target="_blank">wewolski@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br><br>I try to add all header files in the include directory so they are visible in QTCreator.<br>My attempt looks like this.<br>
<br>file(GLOB Demo_HEADERS RELATIVE ${CMAKE_SOURCE_DIR}/include "*.h")<br>message(STATUS ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")<br>
message(STATUS "${Demo_HEADERS}")<br>message(STATUS ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")<br>
add_library(headers SHARED ${Demo_HEADERS} Dummy.cpp)<br><br>Unfortunately the ${Demo_HEADERS} thing is empty :(<br><br>regards<span class="HOEnZb"><font color="#888888"><br><br><br clear="all"><br>-- <br>Witold Eryk Wolski<br>
<br>Triemlistrasse 155<br>8047 Zuerich<br>
</font></span><br>--<br>
<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></blockquote></div><br>