janbar / openssl-cmake

Build OpenSSL with CMake on MacOS, Win32, Win64 and cross compile for Android, IOS
Other
277 stars 144 forks source link

Windows: Add possibility to add debug post fix, install sub directori… #19

Closed aholzinger closed 2 years ago

aholzinger commented 3 years ago

…es for library and binary files and install pdb files.

Please check my changes to support different install directories (i.e. different lib directories for static and dynamic runtime) and also adding PDB files to install.

The following CMake parameters can be set: CMAKE_DEBUG_POSTFIX OPENSSL_LIBRARYDIR_POSTFIX OPENSSL_BINARYDIR_POSTFIX

Example: OPENSSL_LIBRARYDIR_POSTFIX = static OPENSSL_BINARYDIR_POSTFIX = static Now on install lib (and pdb files for the static libs) files will be copied to lib/static and binary files (exe and pdb files of the exes) to bin/static.

If no additional CMake parameters are set there shouldn't be any differences in the build.

janbar commented 2 years ago

Your parent project can install them as it need. This project is not intended to install anything. It allows to build libs to be linked with a parent project. The included install option allows to generate libs with names awaited by Qt or others major frameworks. If you only want to install openssl, then your should use the official build system.