diff --git a/.gitignore b/.gitignore index 8d09ba1..bbf9ba3 100644 --- a/.gitignore +++ b/.gitignore @@ -99,6 +99,10 @@ _deps CMakeDoxyfile.in CMakeDoxygenDefaults.cmake +# Vcpkg + +vcpkg_installed/* + # Python cache __pycache__ diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..a0a57f3 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "vcpkg"] + path = vcpkg + url = https://github.com/microsoft/vcpkg.git diff --git a/CMakeLists.txt b/CMakeLists.txt index dc72a97..d51646f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,9 @@ cmake_minimum_required(VERSION 3.16) ######################################################################################################################## +# sets vcpkg as the dependency manager for the project +set(CMAKE_TOOLCHAIN_FILE "${CMAKE_SOURCE_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake" CACHE STRING "") + project(robocin LANGUAGES CXX) ######################################################################################################################## diff --git a/README.md b/README.md index 9af3fe9..271e6c9 100644 --- a/README.md +++ b/README.md @@ -23,17 +23,23 @@ In progress... In progress... +### Submodules + +On the start of the project make sure to init all the submodules by calling `git submodule init` and update it to the lastest updated version with `git submodule update`. + ## Building [CMake](https://cmake.org/) is the official build system of the `robocin-cpp` project. +[Vcpkg](https://vcpkg.io/en/) supported dependency manager for the `robocin-cpp` project. ## Codemap -- [`utility`](robocin/utility): a collection of utility and helper code. +- [`geometry`](robocin/geometry): a collection of geometric classes; +- [`utility`](robocin/utility): a collection of utility and helper code; diff --git a/vcpkg b/vcpkg new file mode 160000 index 0000000..e8c2a04 --- /dev/null +++ b/vcpkg @@ -0,0 +1 @@ +Subproject commit e8c2a04eb7ca058b6e2f0e6e33c67fdbffeee846 diff --git a/vcpkg.json b/vcpkg.json new file mode 100644 index 0000000..94833d6 --- /dev/null +++ b/vcpkg.json @@ -0,0 +1,8 @@ +{ + "name": "robocin-cpp", + "version-string": "0.0.1", + "dependencies": [ + "gtest", + "benchmark" + ] +} \ No newline at end of file