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