At this time, I am using Linux for the environment and I simply download the tar.gz file but there are several options like getting the docker container. Install Conan server and clientįirst, you can download the JFrog Artifactory Community Edition from here. Even without installing it or actually performing the tutorial, you should be able to understand the basic idea and the workflow by just reading through the post. So In this tutorial, I will use it to give a general overview of both client and server aspects. JFrog Artifactory Community Edition (CE) is free to use. The recommended server is JFrog Artifactory Community Edition (CE). It can run on most of the major platforms (Windows, Linux, and OSX).Ĭonan consists of the client and server. It is an open source software and free to use. The Conan package manager not only makes handling external dependencies easy but also improves the deployment process of packages.Ĭonan⁴ is a dependency and package manager for C /C++ language. In this post, I will give a short introduction of the C/C++ package manager called “Conan”. zip, tar.gz) from the website or using git submodule² and get it from the git repository or using ExternalProject module³ extension of CMake.Īlso, instead of adding the copied external packages to your CMake tree, you can separately build & install the external packages out side of your CMake tree, then use find_package() in the CMakeLists.txt to import them when you build your software (You can check my previous post for more detail about how to export/import a CMake package).Īs you can imagine, handling the dependencies with those classic approaches mentioned above soon become unmanageable as the number of external libraries you use increases. The copying is done either by manually downloading the code (often as formats of. When you are developing a library or an executable program, sometimes you are going to use external libraries for your software instead of writing them on your own in order to avoid reinventing the wheels.Įven though this happens no matter which tool you are using to manage the build process, since CMake¹ has become the de facto tool for C/C++ packages, I focus on the topic with CMake.Ĭlassic approaches for resolving dependencies to the external libraries while using CMake is copying the source codes of the external libraries into the subdirectories, then use add_subdirectory() in your CMakeLists.txt to add the external libraries codes to your CMake tree, and build it all together with your software.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |