Add CMake option for building programs

Signed-off-by: Luka Perkov <luka.perkov@sartura.hr>