# 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=<path to the pcre library>
- PCRE_INCLUDE_DIR=<path to the pcre headers folder>
- ZLIB_LIBRARY=<path to the zlib library>
- ZLIB_INCLUDE_DIR=<path to the zlib headers folder>
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. _