Add find_dependency for link lib targets

This commit is contained in:
Kai Pastor 2024-03-14 09:29:49 +01:00 committed by akallabeth
parent 56a3955af4
commit d6fcacd47a
2 changed files with 9 additions and 0 deletions

View File

@ -1,6 +1,9 @@
include(CMakeFindDependencyMacro) include(CMakeFindDependencyMacro)
find_dependency(WinPR @FREERDP_VERSION@) find_dependency(WinPR @FREERDP_VERSION@)
find_dependency(FreeRDP @FREERDP_VERSION@) find_dependency(FreeRDP @FREERDP_VERSION@)
if("@WITH_SMARTCARD_EMULATE@")
find_dependency(ZLIB)
endif()
@PACKAGE_INIT@ @PACKAGE_INIT@

View File

@ -1,5 +1,11 @@
include(CMakeFindDependencyMacro) include(CMakeFindDependencyMacro)
find_dependency(WinPR @FREERDP_VERSION@) find_dependency(WinPR @FREERDP_VERSION@)
if("@cJSON_FOUND@" AND NOT "@BUILD_SHARED_LIBS@")
find_dependency(cJSON)
endif()
if("@WITH_SMARTCARD_EMULATE@" AND NOT "@BUILD_SHARED_LIBS@")
find_dependency(ZLIB)
endif()
@PACKAGE_INIT@ @PACKAGE_INIT@