[編集中] CppUTestをVisualStuidoとMinGW/gccでビルド


## 準備
```
$ git clone git://github.com/cpputest/cpputest.git
$ cd cpputest
$ export CPPUTEST_HOME=$PWD
```

## VisualStudio
```
$ mkdir build_windows_msvc
$ cd build_windows_msvc
$ cmake -G "Visual Studio 14 2015" ..
$ MsBuild.exe ./src/CppUTest/CppUTest.vcxproj
$ MsBuild.exe ./src/CppUTestExt/CppUTestExt.vcxproj
$ cd ..
$ cp build_windows_msvc/src/CppUTest/Debug/CppUTest.lib src/CppUTest/
$ cp build_windows_msvc/src/CppUTestExt/Debug/CppUTestExt.lib src/CppUTestExt/
```

## MinGW/gcc
```
$ mkdir build_windows_gcc
$ cd build_windows_gcc
$ cmake -G "MSYS Makefiles" ..
$ make  # -> 警告が出るがビルドは成功する
$ cd ..
$ cp build_windows_gcc/src/CppUTest/libCppUTest.a src/CppUTest/CppUTest.lib
$ cp build_windows_gcc/src/CppUTestExt/libCppUTest.a src/CppUTest/CppUTestExt.lib
```

## VisualStudio(32bit/64bit, Debug/Release)

```
mkdir -p CppUTestHomes/windows_msvc_{32,64}bit_{Release,Debug}/src/CppUTest{,Ext}

cp -r include CppUTestHomes/windows_msvc_32bit_Release/src/CppUTest
cp -r include CppUTestHomes/windows_msvc_32bit_Release/src/CppUTestExt
cp -r include CppUTestHomes/windows_msvc_32bit_Debug/src/CppUTest
cp -r include CppUTestHomes/windows_msvc_32bit_Debug/src/CppUTestExt
cp -r include CppUTestHomes/windows_msvc_64bit_Release/src/CppUTest
cp -r include CppUTestHomes/windows_msvc_64bit_Release/src/CppUTestExt
cp -r include CppUTestHomes/windows_msvc_64bit_Debug/src/CppUTest
cp -r include CppUTestHomes/windows_msvc_64bit_Debug/src/CppUTestExt

mkdir build_windows_msvc_32bit
cd build_windows_msvc_32bit
cmake -G "Visual Studio 14 2015" ..
MsBuild.exe ./src/CppUTest/CppUTest.vcxproj /property:Configuration=Debug
MsBuild.exe ./src/CppUTest/CppUTest.vcxproj /property:Configuration=Release
MsBuild.exe ./src/CppUTestExt/CppUTestExt.vcxproj /property:Configuration=Debug
MsBuild.exe ./src/CppUTestExt/CppUTestExt.vcxproj /property:Configuration=Release
cd ..
cp build_windows_msvc_32bit/src/CppUTest/Debug/CppUTest.lib         CppUTestHomes/windows_msvc_32bit_Debug/src/CppUTest/
cp build_windows_msvc_32bit/src/CppUTestExt/Debug/CppUTestExt.lib   CppUTestHomes/windows_msvc_32bit_Debug/src/CppUTestExt/
cp build_windows_msvc_32bit/src/CppUTest/Release/CppUTest.lib       CppUTestHomes/windows_msvc_32bit_Release/src/CppUTest/
cp build_windows_msvc_32bit/src/CppUTestExt/Release/CppUTestExt.lib CppUTestHomes/windows_msvc_32bit_Release/src/CppUTestExt/

mkdir build_windows_msvc_64bit
cd build_windows_msvc_64bit
cmake -G "Visual Studio 14 2015 Win64" ..
MsBuild.exe ./src/CppUTest/CppUTest.vcxproj /property:Configuration=Debug
MsBuild.exe ./src/CppUTest/CppUTest.vcxproj /property:Configuration=Release
MsBuild.exe ./src/CppUTestExt/CppUTestExt.vcxproj /property:Configuration=Debug
MsBuild.exe ./src/CppUTestExt/CppUTestExt.vcxproj /property:Configuration=Release
cd ..
cp build_windows_msvc_64bit/src/CppUTest/Debug/CppUTest.lib         CppUTestHomes/windows_msvc_64bit_Debug/src/CppUTest/
cp build_windows_msvc_64bit/src/CppUTestExt/Debug/CppUTestExt.lib   CppUTestHomes/windows_msvc_64bit_Debug/src/CppUTestExt/
cp build_windows_msvc_64bit/src/CppUTest/Release/CppUTest.lib       CppUTestHomes/windows_msvc_64bit_Release/src/CppUTest/
cp build_windows_msvc_64bit/src/CppUTestExt/Release/CppUTestExt.lib CppUTestHomes/windows_msvc_64bit_Release/src/CppUTestExt/
```