On Sat, Jul 31, 2010 at 11:18 AM, Rolf Eike Beer <e...@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 _______________________________________________ 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