[CMake] Including a header file fails

Andreas Pakulat apaku at gmx.de
Tue Mar 1 18:03:50 EST 2011


On 01.03.11 14:58:15, Enrique Izaguirre wrote:
> I tried several ways but I cannot make it work. The only thing I need to do
> is to add a folder which contains a windows header file, in order that it be
> included in the build.
> There must be a simple way to do it. Could you help?

Header files are not included into the build, they are included in a cpp
source file and that cpp file is then added to the build into an
add_executable call. Once you have that and if it gives you errors, post
the complete error messages here.

Andreas



More information about the CMake mailing list