Add cmake.mk

Long awaited pull request... sorry about that.
This file is based on configure.mk and the Makefile in percona-server-56.
It adds the COMPONENT_TEST_DIR variable in a separate commit.