[cfe-dev] cmake hack: make headers available in IDE/qtcreator

Nikola Smiljanic popizdeh at gmail.com
Sun Feb 1 20:57:59 PST 2015


What do you mean by "make headers visible to qt creator"? I'm using qt
creator and open CMakeList file directly, I haven't noticed that anything
is missing.

On Fri, Jan 30, 2015 at 12:13 AM, Georg Altmann <george at george-net.de>
wrote:

> Hi,
>
> this is a quick hack I figure could be helpful to others to make llvm
> and clang headers visible to qt creator. Just add the following to
> CMakeLists.txt of clang:
>
> # Generate a list of LLVM and Clang headers.
> file(GLOB_RECURSE ALL_CLANG_HEADERS include/*.h)
> file(GLOB_RECURSE ALL_LLVM_HEADERS  ../../include/*.h)
> set(ALL_HEADERS "${ALL_CLANG_HEADERS}" "${ALL_LLVM_HEADERS}")
>
> # Add a custom dummy target that uses all headers as source.
> add_custom_target(header_dummy_target SOURCES "${ALL_HEADERS}")
>
> Now qt creator  should find the headers when using locator. Might be
> useful for other IDEs as well (Eclipse CDT ?).
>
> Regards,
> Georg
>
>
>
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150202/bc06f700/attachment.html>


More information about the cfe-dev mailing list