-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to find crypto++ package using cmake? #249
Comments
I looked over "Starting from Crypto++ 5.7 ...". Is the functionality |
We added Cmake support recently. Varying levels of support have been provided since it was initially added. I'm guessing if Here's more of the back story... Some users wanted Cmake, so we added the Cmake configuration file to the library distribution with the explicit understanding the community has to maintain it (because the project's build system is Make based). I believe this occurred at 5.6.3 release. As issues are uncovered, I forward them to the Cmake folks, and they come back with a patch. I tried adding Cmake testing to my regime, but there were so many problems I kind of gave up on it. We are gearing up for a 5.6.4 release. Whatever is in Master will be included in 5.6.4. But I can't really attest to how robust Cmake support is since all my testing uses the Makefile. Eventually the Cmake gear will get enough community patches where it mostly works under most use cases. And if you have a patch, then please make a Pull Request. I ask that you test the PR on Ubuntu 12.04 before you submit it since we are trying to ensure things "mostly work" under modern platforms. Since 12.04 is LTS and support is in effect, its something we should expect. |
@noloader , thank you for the response. Let me clarify the situation. It seems that you answered about building cryptopp itself using cmake. Is that right? If it is so, I'm asking the different topic. That is how to find cryptopp using cmake from other cmake projects, such as my project. As far as I know, it doesn't require cryptopp can be build using cmake. It requires I found It works well for me. The trivial problem is The file Here is an example: |
Oh, My bad. That shows you how little I know about Cmake. Send me your email address; mine is noloader, gmail address. I'll spin up an off-list thread with the Cmake folks so you can hash out the details. Once you guys figure out if/what is needed, then we can merge a PR. |
Currently it is possible to build Crypto++ itself using Cmake. That does not require
|
Thank you all, I will debug |
Is this something that Cmake should install in its install recipe? That is, suppose I run:
After Or should we ask on Stack Overflow? Related, from CMake:How To Find Libraries on their wiki (I'm just starting to read it):
Should we be working with the Cmake project by providing them with a Also, should our Cmake file be called |
I believe it should.
I don't know the answer to any of the above. :-(
I think it is definitely worth a try. The worst they can say is "No, you worry about your module yourselves", and it's not likely.
I haven't seen a |
I reached out to a Cmake subject matter expert for the
|
Florian got back with us. Below is the reply. It does not look like we do anything special.
|
Sorry for tapping into this so late in the discussion. I had a quick look at Sergiu's work and it's mainly based of having the Regarding what does Crypto++ provide so far: the I don't think we need to add more CMake code in form of find scripts here, we may just need to extend the https://cryptopp.com/wiki/CMake#Using_the_library_in_other_projects chapter a little. How about e.g. adding some code snippet that would pull the code directly from GitHub and would add it directly to any CMake project which wants to use it? |
I don't have edit rights in the Wiki (the validation emails seem not able to reach me), so here is an example I wanted to suggest;
|
any progress on cmake find_package ? as it stands this library is useless .... sharing .sln files in 2018 !? |
We had too many issues with CMake so we removed it from the sources. We did not have the time to work all the problems. CMake is now being hosted at Crypto++ | CMake. CMake for Crypto++ is now a community effort. I don't know if the feature works or not. You might try Botan or OpenSSL if Crypto++ does not meet your needs. |
One "workaround" could be to use conan as a dependency manager for your C/C++ libraries. |
I read crypto++ wiki https://cryptopp.com/wiki/CMake#Using_the_library_in_other_projects
I tried to add the following code in my cmake project:
However, I got the following error message:
It seems that "FindCryptoPP.cmake" not found. Does the file provide by cmake or crypto++?
I'm using cmake 3.6.1 and crypto++ 5.6.3.
The text was updated successfully, but these errors were encountered: