summaryrefslogtreecommitdiffstats
path: root/src/crypto/qat/CMakeLists.txt
blob: ea4c1e25d14ab55ff0e59bba98ab5a0fd4b6b8d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
##
# QAT wrapper for Ceph
##

# Build QAT driver library first
include(BuildQatDrv)

set(qat_crypto_plugin_srcs
  qat_crypto_accel.cc
  qat_crypto_plugin.cc
  qcccrypto.cc)

add_library(ceph_crypto_qat SHARED ${qat_crypto_plugin_srcs})
add_dependencies(ceph_crypto_qat QatDrv)
target_include_directories(ceph_crypto_qat PRIVATE
  ${EXTRA_LIBS}
  ${QatDrv_INCLUDE_DIRS})

add_dependencies(crypto_plugins ceph_crypto_qat)

target_link_libraries(ceph_crypto_qat
  ${QatDrv_LIBRARIES})
add_dependencies(crypto_plugins ceph_crypto_qat)
set_target_properties(ceph_crypto_qat PROPERTIES VERSION 1.0.0 SOVERSION 1)
install(TARGETS ceph_crypto_qat DESTINATION ${crypto_plugin_dir})