[CMake] Should automoc automatically add CMAKE_CURRENT_BINARY_DIR to the include_directories?

Stephen Kelly steveire at gmail.com
Wed Oct 31 16:37:08 EDT 2012


David Doria wrote:

> When using automoc, I still have to do:
> 
> include_directories(${CMAKE_CURRENT_BINARY_DIR})
> 
> so that the compiler can find the MOCed files that get created in the
> build directory. Should this be done automatically so there is one
> less thing the user has to worry about?
> 

That was discussed here:

http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/1367/focus=1813

Thanks,

Steve.




More information about the CMake mailing list