Skip to content

Latest commit

 

History

History
52 lines (42 loc) · 2.03 KB

BUILD.md

File metadata and controls

52 lines (42 loc) · 2.03 KB

Build from sources

Prerequisites:

Build steps

Build library with the following steps:

  1. Clone this repository in a local drive
  2. Make a build directory (i.e. build/)
  3. Install conan dependencies in the build directory
  4. Run cmake in the build directory to configure build targets
  5. Use Visual Studio (on Windows) or make (on Linux) to build the library

Windows

In order to build the application on Windows for the Release configuration, run the following commands ($VSINSTALLPATH is the path where Visual Studio has been installed):

> git clone https://github.com/systelab/cpp-httplib-webserver-adapter
> md build && cd build
> conan remote add systelab-public https://csw.jfrog.io/artifactory/api/conan/cpp-conan-production-local
> conan install .. -s build_type=Release -s compiler.toolset=v142 -s arch=x86_64
> cmake .. -G "Visual Studio 16 2019" -A x64
> "$VSINSTALLPATH/devenv.com" HttpLibWebServerAdapter.sln /build "Release" /PROJECT "HttpLibWebServerAdapter"

However, if you want to Debug the source code, you will need these commands:

> git clone https://github.com/systelab/cpp-httplib-webserver-adapter
> md build && cd build
> conan remote add systelab-public https://csw.jfrog.io/artifactory/api/conan/cpp-conan-production-local
> conan install .. -s build_type=Debug -s compiler.toolset=v142 -s arch=x86_64
> cmake .. -G "Visual Studio 16 2019" -A x64
> "$VSINSTALLPATH/devenv.com" HttpLibWebServerAdapter.sln /build "Debug" /PROJECT "HttpLibWebServerAdapter"

Linux

> git clone https://github.com/systelab/cpp-httplib-webserver-adapter
> mkdir build && cd build
> conan remote add systelab-public https://csw.jfrog.io/artifactory/api/conan/cpp-conan-production-local
> conan install ..
> cmake .. -DCMAKE_BUILD_TYPE=[Debug | Coverage | Release]
> make