Since your North Carolina tax return starts with your federal AGI {adjusted gross income), which includes your capital gain, your capital gain is automatically accounted for with regard to NC.
FYI, NC does not have a separate capital gains tax. Capital gains are taxed as ordinary income.
Note that if this was your main home, you may qualify for a partial capital gains exclusion if the reason you sold was due to an unforeseeable financial hardship. See publication 523 starting on page 6.