![]() Including 40 different (compiler) toolchains. ![]() Installing 3,244 different software packages, Xmake supports the integration of more third-party source code libraries maintained by other build systems, such as Meson, just need to import and use the auxiliary building module to call meson to build them.The latest version of EasyBuild provides support for building and ![]() Once the package is defined, we can use it through add_requires("foo") and add_packages("foo"), just like integrating a remote package.Īlso, on_test is optional, if you want strictTo check whether the compilation and installation of the package is successful, you can do some tests in it.įor a complete example, see: Library with CMakeLists Integrate the Meson project in Xmake !> For local source integration only, we don't need to set additional add_urls and add_versions. List( APPEND CMAKE_MODULE_PATH $))Īmong them, we use set_sourcedir() to set the code directory location of the foo package, and then import the auxiliary module to call cmake to build the code, xmake will automatically obtain the generated libfoo.a and the corresponding header document. Inject them into our own projects in a similar way as plug-ins. To use conan to integrate C/C++ packages in CMake, we need to provide additional CMake Wrapper scripts and Since CMake does not provide built-in support for them, it is very cumbersome to use them in CMake to integrate dependencies,Īnd the way of integration and use is inconsistent. In fact, there are already many powerful C/C++ package managers, the most well-known and most used are: vcpkg, conan, conda, etc.Īlthough they are very powerful, they have a common problem: The build system doesn't have built-in support for them. In any case, the official does not provide native package management support.įor our developers, it is somewhat inconvenient to use third-party C++ dependent libraries. ![]() ![]() The ecology of C++ is very complex, and there are certain historical reasons for this. Therefore, in this article, we will make some summaries on it, hoping to help everyone. Xmake = Build backend + Project Generator + Package ManagerĪfter several years of continuous iteration, Xmake's support for C/C++ package management has been continuously improved,Īnd many useful package management features have been added. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |