Add the ability to provide your own main.cpp (or similar) file to cmake compilation

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>