[CMake] Query regarding header files in CMakeLists.txt

Brett Delle Grazie brett.dellegrazie at gmail.com
Tue Sep 18 18:26:00 EDT 2012


On 18 September 2012 22:38, David Cole <david.cole at kitware.com> wrote:
> 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
>> >
>> --
>> Cheers,
>> Leif
>>
>> --
>
> 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.
>

Thanks everyone for the clarification.
I'm using MinGW32 Makefiles + Eclipse.

-- 
Best Regards,

Brett Delle Grazie


More information about the CMake mailing list