Compiling OpenSSL from a source using CMake
OpenSSL and, for that matter, Boost have their own build systems that are neither wise nor valuable. Therefore, when you say that you compile them, you mean that you want to call them build systems from CMake. This can be done using ExternalProject_Add and usually some kind of script glue, using, for example, Bash .
An example would be the https://github.com/palmerc/CMake_OpenSSL project, which compiles OpenSSL for iOS. It can be a simple template for any library with its own build system.
source share