ec08c2b94a
* Add CMake package configuration so hiredis can be more easily included in other projects. * Fixes hiredis_ssl such that it compiles and works in windows Co-authored-by: nrivera <nrivera@blizzard.com> Co-authored-by: Nick <heronr1@gmail.com>
14 lines
308 B
CMake
14 lines
308 B
CMake
@PACKAGE_INIT@
|
|
|
|
set_and_check(hiredis_INCLUDEDIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
|
|
|
|
IF (NOT TARGET hiredis::hiredis)
|
|
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/hiredis-targets.cmake)
|
|
ENDIF()
|
|
|
|
SET(hiredis_LIBRARIES hiredis::hiredis)
|
|
SET(hiredis_INCLUDE_DIRS ${hiredis_INCLUDEDIR})
|
|
|
|
check_required_components(hiredis)
|
|
|