diff options
Diffstat (limited to 'cmake/modules/FindQatDrv.cmake')
-rw-r--r-- | cmake/modules/FindQatDrv.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/modules/FindQatDrv.cmake b/cmake/modules/FindQatDrv.cmake index 3305a38c06c..e2849d9c89b 100644 --- a/cmake/modules/FindQatDrv.cmake +++ b/cmake/modules/FindQatDrv.cmake @@ -74,7 +74,15 @@ foreach(component ${QatDrv_FIND_COMPONENTS}) add_library(QatDrv::${component} STATIC IMPORTED GLOBAL) set_target_properties(QatDrv::${component} PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${QatDrv_INCLUDE_DIRS}" + INTERFACE_COMPILE_OPTIONS "-DHAVE_QATDRV" IMPORTED_LINK_INTERFACE_LANGUAGES "C" IMPORTED_LOCATION "${QatDrv_${component}_LIBRARIES}") endif() + + # add alias targets to match FindQAT.cmake + if(component STREQUAL "qat_s") + add_library(QAT::qat ALIAS QatDrv::qat_s) + elseif(component STREQUAL "usdm_drv_s") + add_library(QAT::usdm ALIAS QatDrv::usdm_drv_s) + endif() endforeach() |