It works the same on all supported platforms. On Windows, assuming your cmake.exe is on PATH, you can use exactly my commands below.
However, since you are probably not going to use MinGW, you will not have make. Due to that, you need to use cmake -G "Visual Studio 10" instead and open the generated project files with your IDE afterwards.