Use cmake's option command.