Using the Visual Studio Compiler
Following Chris Drew's comment , here's what I did to compile using CMake to create a Visual Studio 2015 solution and compile this solution on the command line.
Note that this does not use the GNU toolchain, as we will not use gcc / make, but the Visual C ++ compiler.
Create and move to the assembly subdirectory (recommended, since it will generate many files, not just the standard Makefile):
mkdir build && cd build
Creating a Visual Studio 2015 solution:
cmake . -G"Visual Studio 14 2015"
This will create several project files, including YourProjectName.sln , which we will use to create the project using the following command:
msbuild YourProjectName.sln
Note that msbuild not in my PATH, so I had to provide the full path to the executable, which was in my case C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe .
Using the Updated MinGW Installer
Tive provided a link in the installer kit that will automatically install GCC 5.1 on your system, so you can use the usual GNU toolchain by creating a Unix Makefile and using the make .
Please note that you will need to edit your PATH manually, as the installer does not do this for you.
source share