cmake build rule + windows cmake config