- Git
- Conan
- CMake
- Visual Studio (only on Windows)
- GCC (only on Linux)
Build library with the following steps:
- Clone this repository in a local drive
- Make a build directory (i.e.
build/
) - Install
conan
dependencies in the build directory - Run
cmake
in the build directory to configure build targets - Use
Visual Studio
(on Windows) ormake
(on Linux) to build the library
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"
> 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