Cross section measurement of ^{14}N(p,γ)^{15}O in the CNO cycle