1. Create a project template (conan new mypkg/0.1 -m=cmake_lib)
2. Make sure it builds and creates (conan create .) (you will need cmake + compiler installed on the system)
3. Now add a dependency. Open conanfile.py and add a dependency, for example “requires = openssl/1.1.1o, "zlib/1.2.11" there (as a class attribute).
Example:
4. Repeat the package creation using “conan create .” or “conan create . --build=missing”(if no precompiled binaries exist in the upstream). You should see the dependency downloaded/ created.
5. Follow the SetMeUp page to add the Artifactory local repository
6. Upload the package ( conan upload mypkg* -r=myrepo --all -c)
2. Make sure it builds and creates (conan create .) (you will need cmake + compiler installed on the system)
3. Now add a dependency. Open conanfile.py and add a dependency, for example “requires = openssl/1.1.1o, "zlib/1.2.11" there (as a class attribute).
Example:
from conan import ConanFile from conan.tools.cmake import CMakeToolchain, CMake, cmake_layout class NewpkgConan(ConanFile): name = "newpkg" version = "1.0.0" requires = "openssl/1.1.1o@", “zlib/1.2.11@” # Optional metadata
4. Repeat the package creation using “conan create .” or “conan create . --build=missing”(if no precompiled binaries exist in the upstream). You should see the dependency downloaded/ created.
5. Follow the SetMeUp page to add the Artifactory local repository
6. Upload the package ( conan upload mypkg* -r=myrepo --all -c)