use enviromental variables as option-switches in CMakeLists.txt

as this make switching in packaging more comfortable