Add rules for cmake build system