2022-01-19 07:27:07 +00:00
|
|
|
# - Find qatzip
|
2017-12-29 04:50:20 +00:00
|
|
|
# Find the qatzip compression library and includes
|
|
|
|
#
|
2022-01-19 07:27:07 +00:00
|
|
|
# qatzip_INCLUDE_DIR - where to find qatzip.h, etc.
|
|
|
|
# qatzip_LIBRARIES - List of libraries when using qatzip.
|
|
|
|
# qatzip_FOUND - True if qatzip found.
|
2017-12-29 04:50:20 +00:00
|
|
|
|
2022-01-19 07:27:07 +00:00
|
|
|
find_path(qatzip_INCLUDE_DIR NAMES qatzip.h)
|
|
|
|
find_library(qatzip_LIBRARIES NAMES qatzip HINTS /usr/local/lib64/)
|
2017-12-29 04:50:20 +00:00
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
2022-01-19 07:27:07 +00:00
|
|
|
find_package_handle_standard_args(qatzip DEFAULT_MSG qatzip_LIBRARIES qatzip_INCLUDE_DIR)
|
2017-12-29 04:50:20 +00:00
|
|
|
|
|
|
|
mark_as_advanced(
|
2022-01-19 07:27:07 +00:00
|
|
|
qatzip_LIBRARIES
|
|
|
|
qatzip_INCLUDE_DIR)
|
|
|
|
|
|
|
|
if(qatzip_FOUND AND NOT TARGET qatzip::qatzip)
|
|
|
|
add_library(qatzip::qatzip SHARED IMPORTED)
|
|
|
|
set_target_properties(qatzip::qatzip PROPERTIES
|
|
|
|
INTERFACE_INCLUDE_DIRECTORIES "${qatzip_INCLUDE_DIR}"
|
|
|
|
IMPORTED_LINK_INTERFACE_LANGUAGES "C"
|
|
|
|
IMPORTED_LOCATION "${qatzip_LIBRARIES}")
|
|
|
|
endif()
|