message("package not find OpenSSL,using pkgConfig find.")
find_package(PkgConfig QUIET)
if(PKG_CONFIG_FOUND)
pkg_search_module(OpenSSL OpenSSL REQUIRED)
endif()
endif()
if(NOT OpenSSL_FOUND)
message(FATAL_ERROR
"Unable to find OpenSSL. Please install pkg-config and OpenSSL development files, e.g.:
sudo apt-get install pkg-config libssl-dev (on Debian, Ubuntu)
or
sudo yum install openssl-devel (on Centos)
If casptone is installed, but cmake didn't manage to find it, there is a slight chance of fixing things by setting some of the following environment variables: