<div dir="ltr">Hello,<div><br></div><div>Thanks for the quick reply!<br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 24, 2015 at 7:54 PM, Stephen Kelly <span dir="ltr"><<a href="mailto:steveire@gmail.com" target="_blank">steveire@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Jakob van Bethlehem wrote:<br>
<br>
> Dear users,<br>
<br>
>   set(CMAKE_PREFIX_PATH "C:/Qt/Qt5.4.0/5.4/msvc2013_64_opengl/lib/cmake")<br>
<br>
Don't do this. Pass CMAKE_PREFIX_PATH as an argument to cmake.<br></blockquote><div><br></div><div>Good point; currently I'm in kind of a proof-of-concept phase, but I'll make this change asap</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
> The CMakeLists.txt file in the subfolder looks like this:<br>
><br>
>   CMAKE_MINIMUM_REQUIRED(VERSION 3.0.0)<br>
<br>
</span>This has effects you probably don't intend. I suggest removing it.<br>
<br>
 <a href="http://www.cmake.org/cmake/help/v3.1/manual/cmake-policies.7.html" target="_blank">http://www.cmake.org/cmake/help/v3.1/manual/cmake-policies.7.html</a></blockquote><div><br></div><div>Hm, that's new to me, especially because the examples-page does not mention this. Alas, something learned today!</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
> The problem: for some reason when compiling mymain.cpp I get:<br>
>   fatal error C1083: Cannot open include file: 'mylib_export.h': No such<br>
> file or directory<br>
><br>
> I already checked that the build-folder is added as an include directory,<br>
<br>
</span>The build folder of the top-level is added as an include directory. Your<br>
export.h file is in the subdirectory.<br><br></blockquote><div>No, the mylib_export.h is created in the top-level build folder, which, as you mentioned, is added as an include directory as expected. It is _included_ though from a subdirectory, but AFAIK that shouldn't make a difference (not that I remember from my Linux experience at least)</div><div><br></div><div>Sincerely,</div><div>Jakob van Bethlehem</div><div><br></div><div><br></div></div></div></div></div>