Build tool : mkdir build && cd build && conan install .. --build=missing && cmake .. -G “Unix Makefiles” && cmake --build .
How to load a configuration file in C++ ?
Suppose we use json files : https://github.com/nlohmann/json
To read a json from stream, we simply use std::ifstream
and deserialize.
IMPLEMENT : https://github.com/nlohmann/json#integration
- install conan
open ~/.conan/profiles/default
(if not exist run: conan profile new --detect default
) in [setting]
block add compiler.runtime=static
open ~/.conan/profiles/default
(if not exist run: conan profile new --detect default
) change compiler.libcxx=libstdc
-> compiler.libcxx=libstdc++11
sudo apt install php-cgi
- install phpcgi-8
git submodule update --init --recursive
git submodule update --recursive --remote
mkdir build
cd build
conan install .. --build=missing
cmake .. -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release
cmake --build . --config Release
one line command:
mkdir build && cd build && conan install .. --build=missing && cmake .. -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release && cmake --build . --config Release
Install Visual Studio
mkdir build
cd build
conan install .. --build=missing
cmake .. -G "Visual Studio 17 2022" -A "x64" -D CMAKE_BUILD_TYPE=Release
cmake --build . --config Release
one line command(powershell only!):
mkdir build && cd build && conan install .. --build=missing && cmake .. -G "Visual Studio 17 2022" -A "x64" -D CMAKE_BUILD_TYPE=Release && cmake --build . --config Release