Fix conan build and remove vcpkg

This commit is contained in:
2025-07-01 13:56:28 +02:00
parent 3178bcbda9
commit 3cb454d4aa
20 changed files with 101 additions and 320 deletions

View File

@@ -6,6 +6,8 @@ This document explains how to use Conan as an alternative package manager for Ba
```bash
pip install conan
conan remote add Cimmeria https://conan.rmontanana.es/artifactory/api/conan/Cimmeria
conan profile new default --detect
```
## Quick Start
@@ -13,25 +15,26 @@ pip install conan
### As a Consumer
1. Create a `conanfile.txt` in your project:
```ini
[requires]
bayesnet/1.1.2@user/channel
libtorch/2.7.0
bayesnet/1.2.0
[generators]
CMakeDeps
CMakeToolchain
[options]
[imports]
```
2. Install dependencies:
```bash
conan install . --build=missing
```
3. In your CMakeLists.txt:
```cmake
find_package(bayesnet REQUIRED)
target_link_libraries(your_target bayesnet::bayesnet)
@@ -44,11 +47,11 @@ target_link_libraries(your_target bayesnet::bayesnet)
make conan-init
# Build debug version
make conan-debug
make debug
make buildd
# Build release version
make conan-release
make release
make buildr
# Create package
@@ -80,5 +83,5 @@ Once custom dependencies are resolved:
make conan-create
# Upload to your remote
conan upload bayesnet/1.1.2@user/channel -r myremote
```
conan upload bayesnet/1.2.0 -r myremote
```