If you are thinking, making a C++ project with boost is hard, I have a solution for you.
Here are the 7 steps you must follow:
- clone this repository and cd into it
git clone https://github.com/keszegrobert/cpp_boost_with_conan.git
cd cpp_boost_with_conan
- make a build directory which will hold the temporary build files
mkdir build
cd build
- using the conanfile.txt build the requirements and put them into conan's cache. The path provided to the conan command should contain a conanfile.txt or conanfile.py
conan install ../ --generator=virtualenv --build=missing
- activate the virtual environment created by the previous step. The paths will be set to contain everything needed for the development
On *nix systems use:
source activate.sh
On Windows* systems use:
activate.bat
- generate the build files using the contents of the CMakeLists.txt file. The path provided to the cmake command should contain the CMakeLists.txt file
cmake ..
- Build the generated solution
cmake --build .
- Run the console application
./helloboost