Fixed missing CMake rule

This CMake rule was supposed to be added in commit 5ffb6830f5 but wasn't there for some reason...