Add edit_cache target for subprojects

This cannot be done by calling the edit_cache target for the project
because it will not recognize the shell size and input. Instead we use
the internal CMAKE_EDIT_COMMAND variable that should automatically
work on IDEs as well.

Fixes #32