Replaced CMakeLists.txt with PROJ.lua for the buildtool.