LeptonicaConfig.cmake.in 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # ===================================================================================
  2. # The Leptonica CMake configuration file
  3. #
  4. # ** File generated automatically, do not modify **
  5. #
  6. # Usage from an external project:
  7. # In your CMakeLists.txt, add these lines:
  8. #
  9. # find_package(Leptonica REQUIRED)
  10. # include_directories(${Leptonica_INCLUDE_DIRS})
  11. # target_link_libraries(MY_TARGET_NAME ${Leptonica_LIBRARIES})
  12. #
  13. # This file will define the following variables:
  14. # - Leptonica_LIBRARIES : The list of all imported targets for OpenCV modules.
  15. # - Leptonica_INCLUDE_DIRS : The Leptonica include directories.
  16. # - Leptonica_VERSION : The version of this Leptonica build: "@PROJECT_VERSION@"
  17. # - Leptonica_VERSION_MAJOR : Major version part of Leptonica_VERSION: "@PROJECT_VERSION_MAJOR@"
  18. # - Leptonica_VERSION_MINOR : Minor version part of Leptonica_VERSION: "@PROJECT_VERSION_MINOR@"
  19. # - Leptonica_VERSION_PATCH : Patch version part of Leptonica_VERSION: "@PROJECT_VERSION_PATCH@"
  20. #
  21. # ===================================================================================
  22. include(CMakeFindDependencyMacro)
  23. if (@OPENJPEG_SUPPORT@)
  24. find_dependency(OpenJPEG CONFIG)
  25. endif()
  26. if (@LIBWEBP_SUPPORT@)
  27. find_dependency(WebP @MINIMUM_WEBPMUX_VERSION@ CONFIG)
  28. endif()
  29. include(${CMAKE_CURRENT_LIST_DIR}/LeptonicaTargets.cmake)
  30. # ======================================================
  31. # Version variables:
  32. # ======================================================
  33. SET(Leptonica_VERSION @leptonica_VERSION@)
  34. SET(Leptonica_VERSION_MAJOR @leptonica_VERSION_MAJOR@)
  35. SET(Leptonica_VERSION_MINOR @leptonica_VERSION_MINOR@)
  36. SET(Leptonica_VERSION_PATCH @leptonica_VERSION_PATCH@)
  37. # ======================================================
  38. # Include directories to add to the user project:
  39. # ======================================================
  40. # Provide the include directories to the caller
  41. set(Leptonica_INCLUDE_DIRS "@INCLUDE_DIR@")
  42. # ====================================================================
  43. # Link libraries:
  44. # ====================================================================
  45. set(Leptonica_LIBRARIES @leptonica_NAME@)