Replace compile.sh with CMakeLists.txt