Skip to content
This repository has been archived by the owner on Mar 22, 2020. It is now read-only.

Commit

Permalink
Add find_dependency to config (ZLIB, TIFF, PNG)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslo committed May 16, 2015
1 parent 10d0ceb commit 56379cc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cmake/templates/OpenCVConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -411,3 +411,17 @@ macro(ocv_list_filterout lst regex)
endif()
endforeach()
endmacro()

include(CMakeFindDependencyMacro)

if("@ZLIB_FOUND@")
find_dependency(ZLIB CONFIG)
endif()

if("@TIFF_FOUND@")
find_dependency(TIFF CONFIG)
endif()

if("@PNG_FOUND@")
find_dependency(PNG CONFIG)
endif()

0 comments on commit 56379cc

Please sign in to comment.