To build a 64-bit target from an existing 32-bit project, you need to install the 64-bit compilers and add the proper settings to your project file.
If you are using Microsoft Visual Studio 2012 or later, the X64 Compilers and Tools are installed as part of the development platform.