Improve CMakeLists.txt to allow installation of composer and dependencies