This docker image will serve as your base c++ project structure. It uses cmake with the conan package manager, all your compilation and test will be run inside a docker image base on GCC 9.3.0
https://bintray.com/conan/conan-center
-
boost: https://www.boost.org/
-
poco: https://pocoproject.org
-
zlib: https://www.zlib.net/
-
sqlite3: https://www.sqlite.org
-
cxxopts: https://github.com/jarro2783/cxxopts
-
spdlog: https://github.com/gabime/spdlog
Run using docker or docker-compose, also refer to entrypoint.sh
for available script.
docker-compose up
docker build -t cppimage .
docker run -it -v "$PWD":"/usr/project" cppimage bash
docker run -v "$PWD":"/usr/project" cppimage build
conan install .. -s build_type=Release --build
cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
cmake --build .