Comment initialiser un CMake variable avec le résultat d'une commande shell

Est-il un moyen de définir une variable dans un CMake script à la sortie d'une commande shell?
Quelque chose comme SET(FOO COMMAND "echo bar") viendrait à l'esprit

InformationsquelleAutor Sasha | 2012-10-23