【发布时间】:2015-06-23 03:00:20
【问题描述】:
我试图在我的 CMakeLists 文件中指定 Crypto++ 库,但我总是遇到错误。
这是我的CMakeLists 文件:
cmake_minimum_required(VERSION 2.8)
project( Recognition )
find_package( OpenCV REQUIRED )
find_package ( CURL REQUIRED )
find_package ( CRYPTOPP REQUIRED )
add_executable( Recognition Recognition.cpp )
target_link_libraries( Recognition ${OpenCV_LIBS} ${CURL_LIBRARY} ${CRYPTOPP_LIBRARY})
这是我得到的错误:
By not providing "FindCRYPTOPP.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "CRYPTOPP",
but CMake did not find one.
Could not find a package configuration file provided by "CRYPTOPP" with any
of the following names:
CRYPTOPPConfig.cmake
cryptopp-config.cmake
Add the installation prefix of "CRYPTOPP" to CMAKE_PREFIX_PATH or set
"CRYPTOPP_DIR" to a directory containing one of the above files. If
"CRYPTOPP" provides a separate development package or SDK, be sure it has
been installed.
-- Configuring incomplete, errors occurred!
感谢您的帮助!
【问题讨论】:
-
如果您将一些东西放在一起,以便将来对人们更容易,那么请在Crypto++ Users 分享。一旦审核通过,我可以确保它在Crypto++ Patches 获得一个页面。
标签: c++ makefile cmake crypto++