CMakefile to compile sources automatically