CMake problem with crypto++ library
已回答
I am having a difficult time trying to get CMake to see the library in IntelliJ CLion IDE.
I am running Linux Mint and I installed crypto++ to /usr/local/include/cryptopp
In my main.cpp I’ve
#include “cryptopp/hex.h”
#include “cryptopp/sha.h”
And it can see them in the IDE, but when I try to build it I get undefined reference errors in the build output terminal.
I’ve tried add_library(cryptopp) in CMakeList.txt and a few other things but I can’t figure out how to get it to build successfully.
Could you point me in the right direction?
Thank you very much for your time.
Eric
请先登录再写评论。
Hi! Please take a look at the article about including libraries in CMake in our web-help. And here is basically the same information in Crypto++ Wiki.
Hi Anna,
Thank you for the lead. After reading through Crypto++ Wiki I came across Issue 249 on GitHub wherein a person posted a link to a solution at FindCryptoPP.cmake.
I have one remaining issue that I hope you can help me resolve. I presume that it is a lot easier to resolve than the previous issue. When I click "Run Build All,"
an dialog titled "Edit Configuration" open and under Configuration is says Debug (Not Found). Is there a quick fix to this issue? Below is a screenshot: