[CMake] CMake+Eclipse: how to get header files with non-standard suffix into the headers folders?

Petr Kmoch petr.kmoch at gmail.com
Mon Mar 11 11:37:01 EDT 2013


Hi Magnus,

I've never worked with Eclipse, but source_group() might be the
command you're looking for.

Petr

On Mon, Mar 11, 2013 at 4:17 PM, Magnus Therning <magnus at therning.org> wrote:
> In the project I work on we have tools that generate quite a few
> header files, but they are all generated with names matching *.inc.
> I've added them all to the list of sources for the target, but the
> generated Eclipse project doesn't list these files among the headers.
> Is there a way to tell CMAKE that *.inc files are headers and thus
> should go into the headers folders in Eclipse projects?
>
> /M
>
> --
> Magnus Therning                      OpenPGP: 0xAB4DFBA4
> email: magnus at therning.org   jabber: magnus at therning.org
> twitter: magthe               http://therning.org/magnus
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list