I have such a problem that I can not configure cmake for this project . I understand the message:

Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) Could NOT find Jansson (missing: JANSSON_LIBRARIES JANSSON_INCLUDE_DIRS) Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR) Could NOT find SQLITE3 (missing: SQLITE3_LIBRARY SQLITE3_INCLUDE_DIR) 

I have a problem with connecting libraries (SQLITE3, OPENSSL, CRL, JANSSON). In CMakeList.txt, I didn’t change anything and, in general, I don’t change anything in this project. Help me set up Cmake to find libraries. In Cmake, he had never worked before and was a poet without any idea how all this was done there.

  • See this answer - ixSci
  • @ixSci I do not really understand how I can connect it with the decision. - Poul Shipilov
  • @PoulShipilov says how to make cmake look for the necessary libraries. - n3r0bi0m4n
  • @ n3r0bi0m4n I'm just stupid, I still can't figure out how to install them. I kind of downloaded what I needed. It seems to me that I am doing wrong when I download the libraries themselves. What can I do with them, so I downloaded the archive, let's say CURL - unarchive, and then what? What to do with this library source folder? - Poul Shipilov
  • @ n3r0bi0m4n Please do not send questions to the search engines - Nicolas Chabanovsky ♦

1 answer 1

In order for CMake to find the necessary libraries, they must be downloaded, compiled and installed, according to the documentation for each of them. After that, you need to set additional parameters for CMkake, which are required for a particular library. See what parameters are required in a specific search script (usually written in the comments in the header of the script). The scripts are in <path where CMake is installed> \ CMake \ share \ cmake- <version> \ Modules. Library Search Scripts - Find * .cmake. If there is no script for any of the libraries, then you need to write it yourself using the CMake documentation.