]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: add WITH_QATLIB to build against qatlib
authorCasey Bodley <cbodley@redhat.com>
Fri, 24 Nov 2023 17:23:57 +0000 (12:23 -0500)
committerCasey Bodley <cbodley@redhat.com>
Wed, 7 Feb 2024 15:37:47 +0000 (10:37 -0500)
commitd6663c389b7959327d77a4278098aa8333cb4ffd
tree39574eb39e0616fe6254800e76272666fe90c2e1
parent80eae5de523dc796a4bd6ab0e9cccc2b9b2f6287
cmake: add WITH_QATLIB to build against qatlib

FindQAT.cmake adds library targets QAT::qat and QAT::usdm for qatlib,
and FindQatDrv.cmake adds alias targets to the same

src/compressor and src/crypto/qat link against these common QAT targets

src/crypto/qat/qcccrypto.h uses new HAVE_QATDRV define to determine
which headers to include

Signed-off-by: Casey Bodley <cbodley@redhat.com>
CMakeLists.txt
cmake/modules/FindQAT.cmake [new file with mode: 0644]
cmake/modules/FindQatDrv.cmake
src/compressor/CMakeLists.txt
src/crypto/CMakeLists.txt
src/crypto/qat/CMakeLists.txt
src/crypto/qat/qcccrypto.cc
src/crypto/qat/qcccrypto.h