cmake-init-transitive
cmake-init-conan-example
Our great sponsors
cmake-init-transitive | cmake-init-conan-example | |
---|---|---|
5 | 12 | |
1 | 15 | |
- | - | |
0.0 | 5.8 | |
almost 2 years ago | 17 days ago | |
CMake | CMake | |
- | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cmake-init-transitive
-
Problem when creating a standalone .a file which includes other libraries with CMake
You need to properly propagate transitive dependencies. You can find out how to do that here: https://github.com/friendlyanon/cmake-init-transitive
-
understanding cmake code for exporting library. what is the purpose of highlighted 3 lines do for exporting the library target.
Those lines are required to properly propagate transitive dependencies https://github.com/friendlyanon/cmake-init-transitive/blob/master/cmake/install-config.cmake
-
How Can I Make it So That A Static Library Depends on Another Static Lib?
You can find an example here https://github.com/friendlyanon/cmake-init-transitive
-
If I want to import a library/module from github into my C program where do I git clone it?
Use a package manager. This example shows how to use vcpkg to get json-c. You can do the same using Conan as well.
-
How to deal with libraries as an open source project?
If it would be a transitive dependency, then you should take a look at this exmaple as well.
cmake-init-conan-example
-
Conan and cmake library problems
I haven't really used conan but you should not use the cmake generator, you should use the CMakeDeps and CMakeToolchain generators instead. That might solve your problem, after all there is a reason why the cmake generator is being deprecated. Check this for an example: https://github.com/friendlyanon/cmake-init-conan-example
-
If I want to import a library/module from github into my C program where do I git clone it?
Use a package manager. This example shows how to use vcpkg to get json-c. You can do the same using Conan as well.
-
How do I add a configure step to cmake?
You ought to call Conan before configuring. Take a look at this example.
-
Best way to manage dependencies with c++?
Conan and vcpkg are the only options. I use them both, depends on what kinds of dependencies I want to pull. vcpkg is easier to setup custom one-off dependencies with using overlay ports, while Conan is faster at things if your profile fits one that has a pre-built binary in CCI. Both are trivial to integrate with a CMake project, see these examples for Conan and vcpkg.
-
How to build libvpx as a shared library for my project?
More details in this example project.
-
3rd party library delivery
I have an example for Conan integration that I'm planning on revisiting, since it was made when I knew less about Conan. If you are interested in a concrete example, you can check it out later.
-
CMake 3.22.0 available for download - Kitware Blog
Integrating with Conan is already pretty straightforward, you just need a short script to glue things together via the Conan provided CMake utility.
-
Some GithubCI (and not only) help needed
You can check out the CI for this example project. It doesn't yet have caching for Conan setup, but Qt has prebuilt binaries in the CCI anyway, so that's not really that big of a deal.
-
Make your commits prettier with Catify, a C++ project
The CMake scripts could definitely use improvement. Here is an example using Conan that also installs fmt. The shell scripts can also be entirely replaced with CMake presets, also examplified in the earlier link.
-
what can I say, lol
Or Conan + CMake. In fact, I would much prefer to use Conan in a company environment, but vcpkg is top notch for open source. Not to say Conan is bad at that, not even close, but its features are excellent to get companies to move to package managers.
What are some alternatives?
stb - stb single-file public domain libraries for C/C++
gentoo - [MIRROR] Official Gentoo ebuild repository
cmake-init - The missing CMake project initializer
Geany - A fast and lightweight IDE
icecream - Distributed compiler with a central scheduler to share build load
cache - Cache dependencies and build outputs in GitHub Actions
ASP.NET Core - ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
lcd - An LCD module simulator based on HD44780 microcontroller simulation
Boost-Pretty-Printer - GDB Pretty Printers for Boost
steam-runtime - A runtime environment for Steam applications
small - C++ small containers
conan-center-index - Recipes for the ConanCenter repository