Adding CMake support seems like a good idea seeing that Qt 6 is moving to use CMake as its default build system.
This adds CMake build system with a few options. It makes it possible to either install a package (named QtAES) or use it as a subdirectory (directly or via FetchContent module); in either case, target named QtAES::QtAES is provided.
Options:
QTAES_ENABLE_AESNI — enable AES-NI extensions; disabled by default since MSVC is not supported
QTAES_ENABLE_INSTALL — enable installation (library, headers, docs, CMake package); disabled by default for non-standalone builds
QTAES_ENABLE_TESTS — enable building/running test(s); disabled by default for non-standalone builds
QTAES_ENABLE_WERROR — treat warnings as errors with GCC, Clang, and MSVC; disabed by default due to GCC/Clang VLA-related warnings when QTAES_ENABLE_AESNI is enabled
QTAES_QT_VERSION — Qt version to use for the build and depend on in CMake package; Qt 5 and 6 are supported (both tested), could contain fraction parts
Adding CMake support seems like a good idea seeing that Qt 6 is moving to use CMake as its default build system.
This adds CMake build system with a few options. It makes it possible to either install a package (named QtAES) or use it as a subdirectory (directly or via FetchContent module); in either case, target named QtAES::QtAES is provided.
Options: