Switch to cmake/nmake
This isn't what's recommended in README.CMake.txt,
but it builds without fuss on AppVeyor
-sh configure --prefix=%PREFIX%
-make -j%CPU_COUNT%
-make test
-make install
\ No newline at end of file
+mkdir build
+cd build
+
+cmake -G "NMake Makefiles" ^
+ -DCMAKE_INSTALL_PREFIX="%PREFIX%" ^
+ -DCMAKE_BUILD_TYPE=Release ^
+ %SRC_DIR%
+if errorlevel 1 exit 1
+
+:: Build.
+nmake
+if errorlevel 1 exit 1
+
+:: Test.
+ctest
+if errorlevel 1 exit 1
+
+:: Install.
+nmake install
+if errorlevel 1 exit 1
