add flags to cmake