[CMake] how to get cmake and custom qt widget to work?

Alexander Neundorf a.neundorf-work at gmx.net
Wed Oct 13 16:29:11 EDT 2010


On Tuesday 05 October 2010, eial at cs.bgu.ac.il wrote:
> the project's one?
> I've copied the hpp and cpp files into one of my src dirs.
> still not compiling

Don't use file(GLOB ...) to collect your source files.
Use explicit set(GUI_SRCS a.cpp b.cpp ...) 
calls. This avoids problems like wrong files getting picked up or new files 
not getting picked up.

Alex


More information about the CMake mailing list