find cmake refactored