[CMake] Putting moc and uic files in separate folders/filters (Visual Studio)

Brad King brad.king at kitware.com
Mon Jun 19 11:31:59 EDT 2006


Patrick Noffke wrote:
> Is it possible to put the generated files (moc_*.cxx and ui_*.h) in their own filters in VS 2005 Express Edition?  When I add headers or cpp/cxx files using ADD_EXECUTABLE or ADD_LIBRARY, they are all lumped in the "Header Files" or "Source Files" filters, respectively.  Since I have to add moc- and uic-generated files to my target, this makes for a cluttered view of the project.

Try the SOURCE_GROUP command.

-Brad


More information about the CMake mailing list