Thorbjørn Lindeijer wrote: > ext Mar wrote: > >> [email protected] wrote: >> >>> There's been previous discussion in the list about this and I have the >>> very same issue...I have a patch that uses a heuristic to fix it >>> (basically it assumes every .h file corresponds to a .cpp file). I'll >>> post a patch next week if you're interested. >>> >>> >> Sounds great, looking forward to use you patch. (Then I can just make an >> empty .cpp file for the few .h files I have with out a corresponding >> .cpp mush easier than the work-arund I sugested). >> > > It should be easier to just list your .h files in the CMakeLists.txt > file. cmake knows that it should just ignore them, as far as I am aware. > For example in a hobby project I'm working on we just have: > > SET(SRCS > gui/widgets/button.cpp > gui/widgets/button.h > etc. > > Regards, > Bjørn > I have tried that with out luck. I have the h-files in one dir and cpp-files in another. I have made 3 CMakeLists.tex, one in the "top" and one in each "code"-dir. I have now collected all the informations from the files and put it into the "top"-dir CMakeLists.txt so that I only have 1 CMakeLists.txt and now your suggestion works. Thanks for the hint Bjørn.
Regards, Mar _______________________________________________ Qt-creator mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-creator
