more work on cmake: added options