[CMake] Query regarding header files in CMakeLists.txt

David Cole david.cole at kitware.com
Tue Sep 18 17:38:52 EDT 2012


On Tue, Sep 18, 2012 at 5:37 PM, Leif Walsh <leif.walsh at gmail.com> wrote:

>
> On 18 Sep, 2012, at 5:34 PM, Brett Delle Grazie <
> brett.dellegrazie at gmail.com> wrote:
>
> > Hi,
> >
> > Is it necessary to specify header files in add_executable /
> > add_library entries in CMakeLists.txt?
>
> nope
> >
> > i.e. does CMake automatically do dependency analysis making this
> unnecessary?
>
> yup
> >
> > Thanks,
> >
> > --
> > Best Regards,
> >
> > Brett Delle Grazie
> > --
> >
> > 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
>
> --
> Cheers,
> Leif
>
> --
>
> 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
>


Listing them in add_executable or add_library makes them show up in GUI's
like Visual Studio or Xcode. Without adding them, they won't be added as
"files you can double-click on" in the generated project files.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120918/245a6a90/attachment.htm>


More information about the CMake mailing list