forexample / package-example Goto Github PK
View Code? Open in Web Editor NEWCMake: config mode of find_package command (examples)
CMake: config mode of find_package command (examples)
I gave your example a try and I like how it is structured as well as how clear and concise the CMake is, but I ran into a problem. I ran install
and successfully "installed" the Foo project.
When I try to use Foo::bar
and Foo::baz
in another project, the find_package
fails because the check_components
function fails when it's searching for the required components. Any ideas how to fix this so that the components are successfully found? If that check isn't there everything works fine.
@mrostecki added this pull request to my project. I asked him to please post it here but I don't think he has had time to do so. I was wondering how you feel about this issue. Below is a quote from the linked PR.
The common practice in cmake to allow to specify the libdir is using the LIB_INSTALL_DIR variable. The main use case of that variable is setting /usr/lib64 as the destination dir for libraries which is a common pattern in many Linux distributions.
I would like to setup third parties project like proposed in this example.
However, I would like that the setup of these third parties package are done by my main project cmake.
If the third party package is not there, then install it .... (most of them are git repository based)
have you got an idea on how to proceed ?
The examples are missing the include folder for the installed library
Thank you for this example. There is something that does not seem satisfying: the monolithic build works only if the order of commands add_subdirectory
in the top-level CMakeLists.txt
is correct. Is there not a way to improve on this? (Imagine a set of a dozen libraries with various dependencies between them.)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.