* cmake: build either static or shared libs * cmake: allow to build non-PIC static libs * fix typo * cmake: add ALIAS targets * cmake: link to OpenSSL imported targets CMake imported targets are more robust * turn ENABLE_EXAMPLES to a CMake option * fix typo * install pdb files if shared * fix hiredis_ssl-config file * Fix more targets * CMake knows when to enable CMAKE_POSITION_INDEPENDENT_CODE * Restore setting of /Z7 * [ci] fix building of shared and static libs * Apply suggestions from code review Co-authored-by: Bjorn Svensson <bjorn.a.svensson@est.tech> * Make it possible to change name of exported target --------- Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com> Co-authored-by: Bjorn Svensson <bjorn.a.svensson@est.tech>
14 lines
336 B
CMake
14 lines
336 B
CMake
@PACKAGE_INIT@
|
|
|
|
set_and_check(hiredis_INCLUDEDIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
|
|
|
|
IF (NOT TARGET hiredis::@hiredis_export_name@)
|
|
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/hiredis-targets.cmake)
|
|
ENDIF()
|
|
|
|
SET(hiredis_LIBRARIES hiredis::@hiredis_export_name@)
|
|
SET(hiredis_INCLUDE_DIRS ${hiredis_INCLUDEDIR})
|
|
|
|
check_required_components(hiredis)
|
|
|