Fix memory leak - delete private instance.
Remove use of obsolete IMMEDIATE option.
Port away from CMAKE_AUTOMOC_RELAXED_MODE.
Add missing newline.
Don't use multiple add_definitions calls where one will do.
Remove some find_package(Qt4) calls.

GrantleeConfig.cmake already does this.
Remove add_definitions(-DQT_GUI_LIB) where not needed.
Remove QT_DEFINITIONS where not needed.

Grantlee_USE_FILE already does this (via QT_USE_FILE).
Use Qt4 IMPORTED target names directly.

Instead of using variables.
Don't use QT_NO_KEYWORDS in examples.

It is not really needed.
Prefer CMAKE_INCLUDE_CURRENT_DIR over explicit binary dir listing.
Add some uniformity to command invocation.
Remove unneeded QT_NO_KEYWORDS definition.
Remove unneeded find_package(Qt4)

GrantleeConfig already does this.
Use Qt4 IMPORTED target names directly.

Instead of using variables.
Increase the CMake requirement for examples and tests.

Match the requirement of grantlee itself.
Use CMAKE_AUTOMOC instead of qt4_automoc.
Use list(APPEND) where appropriate.
Use an empty endmacro() command.
Add missing include.