[CMake] Including a header file fails

John Drescher drescherjm at gmail.com
Tue Mar 1 14:06:09 EST 2011


> The header file is already #included in one of the source files. What I
> don't know is how to link it.
> Can I do it only with target_link_libraries ( ) or how?
>

You do not link header files. You link source files. Why are you not
specifying your source files on the target_link_libararies() line?

John


More information about the CMake mailing list