In the past I’ve used the Visual Studio solution files to build zeromq (libzmq) on Windows. I just noticed that the Visual Studio solutions have been deprecated because they are too difficult to maintain.
The alternative is to use CMake; trouble is I’ve no experience of how to invoke the build this way. Is anyone please able to demonstrate the necessary commands, step-by-step?
I’d like to achieve 32 & 64bit libzmq binaries using libsodium and compiled with VS2015 on Windows 10. (I’ve installed CMake 64bit and allowed it to add to the system path at installation.)
Thanks
cmake -H ...
is for command line. But you may build the project from CMake GUI, its general usage is described in many places (in short: 1. Select source and build directories. 2. Select proper generator. 3. Press "Configure". 4. Possibly adjust options and press "Configure" again). Selecting between 32 and 64bit libraries is achieved by using proper generator, "Visual Studio 14 2015" or "Visual Studio 14 2015 Win64". – Ingrowingoption (WITH_LIBSODIUM "Use libsodium instead of built-in tweetnacl" OFF)
which is probably what do you want: in CMake GUI you need to check "WITH_LIBSODIUM" option. – Ingrowing