Revert "cleaned up cmake"

This reverts commit 31840109a8f479ce2bc0ae2cc73b9b6e35dc5de6.