When including a snippet of CMakeLists.txt, auto language discovery fails, so lang:'cmake' is necessary. But, when adding that, include-codeblock gives a warning:
warn: include-codeblock: unknown language `cmake`, use default
But the highlighting works fine.