# DeviceAtlas C++ API and Windows # Quick how-to for MS Visual Studio 2012 (Desktop Edition) ### Requirements ### - CMake 2.6 (or above) - PCRE library (Perl Compatible Regular Expressions) - ZLIB library ** Note ** You have to set cmake environment variables about PCRE and ZLIB locations - PCRELIB=&lt;path to the pcre library&gt; - PCRE_INCLUDE_DIR=&lt;path to the pcre headers folder&gt; - ZLIB_LIBRARY=&lt;path to the zlib library&gt; - ZLIB_INCLUDE_DIR=&lt;path to the zlib headers folder&gt; For example: ```shell cmake -G "Visual Studio 11 Win64" -DPCRE_INCLUDE_DIR="C:\My Documents\Libraries\pcre-8.2.3\include\" -DPCRELIB="C:\My Documents\Libraries\pcre-8.2.3\Release\pcre.lib" -LIBTYPE=STATIC ``` ### Step 1 ### - run cmake with a path to the DA source (i.e. cmake deviceatlas_cpp_{version}) / This step generates a project file for Visual Studio in the current folder / ### Step 2 ### - run VS and open pre-generated project file (Project.sln) from the step 1. - build solution (F7) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - _ Copyright (c) DeviceAtlas Limited 2021. All Rights Reserved. _ <!-- HTML+JS for document formatting when opened in browser --> <div class="btn-group" id="main-menu" style="float:right"><a class="btn dropdown-toggle" data-toggle="dropdown" href="#">Menu<span class="caret"></span></a><ul class="dropdown-menu"><li><a href="README.html">Main</a></li><li class="divider"></li><li><a href="README.DeviceApi.html">Device Detection API</a></li><li><a href="README.DeviceApi-Config.html">Device Detection API Config</a></li><li><a href="README.CarrierApi.html">Carrier Identification API</a></li><li class="disabled"><a href="README.Windows.html">C++ API and Windows</a></li><li class="divider"></li><li><a href="README.ClientSide.html">Client-side Component</a></li><li class="divider"></li><li><a href="README.Nginx.html">Nginx Module Installation</a></li><li><a href="README.ConnectivityAnalyser-Nginx.html">Nginx Connectivity Analyser</a></li><li class="divider"></li><li><a href="README.Apache2.html">Apache2 Module Installation</a></li><li><a href="README.ConnectivityAnalyser-Apache2.html">Apache 2 Connectivity Analyser</a></li><li class="divider"></li><li><a href="ApiDocs/index.html">DeviceAtlas ApiDocs</a></li></ul></div>