DISTRHO Plugin Framework
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
785B

  1. # Use pkg-config to get hints about paths
  2. find_package(PkgConfig QUIET)
  3. if(PKG_CONFIG_FOUND)
  4. pkg_check_modules(LIBLO_PKGCONF liblo)
  5. endif(PKG_CONFIG_FOUND)
  6. # Include dir
  7. find_path(LIBLO_INCLUDE_DIR
  8. NAMES lo/lo.h
  9. PATH_SUFFIXES include includes
  10. PATHS ${LIBLO_PKGCONF_INCLUDEDIR}
  11. )
  12. # Library
  13. find_library(LIBLO_LIBRARY
  14. NAMES lo liblo
  15. PATH_SUFFIXES lib
  16. PATHS ${LIBLO_PKGCONF_LIBDIR}
  17. )
  18. find_package(PackageHandleStandardArgs)
  19. find_package_handle_standard_args(LibLo DEFAULT_MSG LIBLO_LIBRARY LIBLO_INCLUDE_DIR)
  20. if(LIBLO_FOUND)
  21. set(LIBLO_LIBRARIES ${LIBLO_LIBRARY})
  22. set(LIBLO_INCLUDE_DIRS ${LIBLO_INCLUDE_DIR})
  23. endif(LIBLO_FOUND)
  24. mark_as_advanced(LIBLO_LIBRARY LIBLO_INCLUDE_DIR
  25. #JACK_LIBRARIES JACK_INCLUDE_DIRS
  26. )