On Thursday 20 January 2011, Dimitri Kaparis wrote: > On Thu, Jan 20, 2011 at 7:27 PM, Alexander Neundorf > > <a.neundorf-w...@gmx.net> wrote: > > On Thursday 20 January 2011, Dimitri Kaparis wrote: > >> Greetings, > >> > >> the Code Blocks generator is not adding to the project the sources, > >> specified in the command. > >> In order to add a group of header files to my project tree, I'm trying > >> to implement the solution posted here: > >> http://www.cmake.org/pipermail/cmake/2010-November/040537.html > >> The target itself is added to the Code Blocks project, however the > >> source files are not. > >> Should I file a bug report? Are there any other workarounds for that > >> use case, besides adding the headers to some other existing executable > >> or library target? > >> > >> This is under linux, with CMake release 2.8.3. > > > > add_custom_target() does not have a list of source files. Which behaviour > > do you expect ? > > Can you post a small example CMakeLists.txt and explain what you would > > expect ? > > From the documentation at > http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:add_custom_targ >et > > "The SOURCES option specifies additional source files to be included > in the custom target. Specified source files will be added to IDE > project files for convenience in editing even if they have not build > rules."
Ah, I didn't know that. http://public.kitware.com/Bug/view.php?id=11736 Alex _______________________________________________ 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