Skip to content

Commit

Permalink
[C++] Added support for installing dependencies with Conan
Browse files Browse the repository at this point in the history
  • Loading branch information
mkmkme committed Mar 4, 2024
1 parent df41f67 commit 097ee06
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lang/c++/README
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ cmake -G "Unix Makefiles" ..

If it doesn't work, either you are missing boost package or you need to help
configure locate it.
Alternatively, you can use Conan to install the dependencies. To do that, use:

conan install . -u -b missing -s:h build_type=RelWithDebInfo
cmake -S. -Bbuild -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=build/RelWithDebInfo/generators/conan_toolchain.cmake

If the Makefile is configured correctly, then you can make and run tests:

Expand Down
9 changes: 9 additions & 0 deletions lang/c++/conanfile.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[requires]
boost/[^1.84.0]

[generators]
CMakeDeps
CMakeToolchain

[layout]
cmake_layout

0 comments on commit 097ee06

Please sign in to comment.