For anyone else who has this problem in the future, I got around it by adding the following line to my .pro files:
CONFIG += debug_and_release build_all

I was still only able to build the debug version in Eclipse, but doing the above allowed me to build a release version from the command line by running qmake then make.