Windows
On Windows, CMake is used to generate a Visual Studio Solution (SLN) and associated project files.
> mkdir build; cd build > cmake .. <options>
Once you've generated your SLN, you can just open it and use Visual Studio to build the project for you just like any other project.
Command Line
Alternatively, you can just invoke msbuild.exe on the generated solution and build from the command line.
> msbuild opendnp3.sln or > cmake --build .
Installing
CMake creates a special project called "install" that you can run inside Visual Studio to install the headers and libraries to
the directory specified by CMAKE_INSTALL_PREFIX.
TLS Support
If you need to build the stack w/ TLS support (or you're using the .NET bindings), then you need to install OpenSSL on Windows. Use the installers from ShiningLight.
.NET Bindings
By far, the easiest way to use the .NET bindings is just to install the Nuget package we publish:
PM> Install-Package opendnp3
or to allow pre-release versions:
PM> Install-Package opendnp3 -Pre
Building
Enable the building of the .NET bindings when configuring CMake, e.g.:
> cmake .. -DDNP3_DOTNET=ON