def cmake_setup():
cmake_exe = shutil.which('<STR_LIT>')<EOL>if not cmake_exe:<EOL><INDENT>raise FileNotFoundError('<STR_LIT>')<EOL><DEDENT>wopts = ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>'] if os.name == '<STR_LIT>' else []<EOL>subprocess.check_call([cmake_exe] + wopts + [str(SRCDIR)],<EOL>cwd=BINDIR)<EOL>ret = subprocess.run([cmake_exe, '<STR_LIT>', str(BINDIR)],<EOL>stderr=subprocess.PIPE,<EOL>universal_newlines=True)<EOL>result(ret)<EOL>
attempt to build using CMake >= 3