Simplify cmake setup

Signed-off-by: Michal Čihař <michal@cihar.com>
Fix typo

Signed-off-by: Michal Čihař <michal@cihar.com>
Remove unused variable

Signed-off-by: Michal Čihař <michal@cihar.com>