Reputation: 1339
I would like to pull in OpenSSL to our cross platform project and compile from source code. We have many platforms (Windows, Mac, iOS, Android, Xamarin Andriod) so using maintaining/updating binaries can be a headache. We are using cmake.
Has anyone successfully used Cmake to compile OpenSSL? Is there any example?
Upvotes: 12
Views: 12607
Reputation: 22225
OpenSSL and for that matter Boost each have their own build systems which it would be neither wise nor valuable to mess with. So when you say compile them you mean you want to call their build systems from CMake. This can be done with ExternalProject_Add
and usually some sort of scripting glue using for example Bash
.
An example might be my https://github.com/palmerc/CMake_OpenSSL project that compiles OpenSSL for iOS. This could easily be a general template for any library with its own build system.
Upvotes: 0
Reputation: 11201
openssl-cmake(1) project is an option. This provides a cmake build system for openssl. You are also no more dependent on PERL.
Upvotes: 3