Can now pass -DTARGET to cmake to select build profile from cmake directory