FindLZO.cmake 466 B

12345678910111213141516
  1. find_path(LZO_INCLUDE_DIR lzo/lzo1x.h)
  2. find_library(LZO_LIBRARY lzo2)
  3. mark_as_advanced(LZO_INCLUDE_DIR LZO_LIBRARY)
  4. include(FindPackageHandleStandardArgs)
  5. find_package_handle_standard_args(LZO DEFAULT_MSG
  6. LZO_INCLUDE_DIR LZO_LIBRARY)
  7. if(LZO_FOUND AND NOT TARGET LZO::LZO)
  8. add_library(LZO::LZO UNKNOWN IMPORTED)
  9. set_target_properties(LZO::LZO PROPERTIES
  10. IMPORTED_LOCATION "${LZO_LIBRARY}"
  11. INTERFACE_INCLUDE_DIRECTORIES "${LZO_INCLUDE_DIR}"
  12. )
  13. endif()