Jakob van Bethlehem wrote:

> Dear users,

>   set(CMAKE_PREFIX_PATH "C:/Qt/Qt5.4.0/5.4/msvc2013_64_opengl/lib/cmake")

Don't do this. Pass CMAKE_PREFIX_PATH as an argument to cmake.

> The CMakeLists.txt file in the subfolder looks like this:
> 
>   CMAKE_MINIMUM_REQUIRED(VERSION 3.0.0)

This has effects you probably don't intend. I suggest removing it.

 http://www.cmake.org/cmake/help/v3.1/manual/cmake-policies.7.html

> The problem: for some reason when compiling mymain.cpp I get:
>   fatal error C1083: Cannot open include file: 'mylib_export.h': No such
> file or directory
> 
> I already checked that the build-folder is added as an include directory,

The build folder of the top-level is added as an include directory. Your 
export.h file is in the subdirectory.

Thanks,

Steve.


-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to