add "-nomake examples -nomake demos" to your configure invocations, it works on both windows and linux. I cannot speak for any other platforms though. Those commands accomplish the same as commenting the lines out of the projects.pro file.