[CMake] Help using CMake & Expat in Windows

John Drescher drescherjm at gmail.com
Sat Jul 31 11:24:19 EDT 2010


On Sat, Jul 31, 2010 at 11:18 AM, Rolf Eike Beer <eike at sf-mail.de> wrote:
> Am Samstag 31 Juli 2010, 00:59:36 schrieb Stefan Buschmann:
>
>> Am 30.07.2010 22:23, schrieb Clark Taylor:
>
>> > ADD_EXECUTABLE(myApp ${Headers} ${Src})
>>
>> You should not need to add ${Headers} here (usually only the sources
>> should be compiled).
>
> If you do not include the headers to ADD_EXECUTABLE they will not show up as
> members of the project in MSVC which is quite annoying. So I would strongly
> encourage everyone to add the headers to the targets like Clark did.
>

Agreed. Specifying the headers will be needed if you use the visual
studio GUI. Without that the headers do not show up as part of the
project and this causes all kind of annoyances like no class view,
harder to get to the header file, searches may fail to find what you
want ...

John


More information about the CMake mailing list