How can one set configuration dependent preprocessor defines? For example, a release build of Qt based code should be built with -DQT_NO_DEBUG (which qmake does automatically). Ideally, that would go in the UseQt4.cmake file so CMake projects get it automatically. Otherwise, it requires extra work for those who make plugins. Clint