UsePkgConfig.cmake 807 B

1234567891011121314151617181920
  1. # - obsolete pkg-config module for CMake
  2. #
  3. # Includes FindPkgConfig.cmake which defines
  4. #
  5. # PKGCONFIG(package includedir libdir linkflags cflags)
  6. #
  7. # Calling PKGCONFIG will fill the desired information into the 4 given arguments,
  8. # e.g. PKGCONFIG(libart-2.0 LIBART_INCLUDE_DIR LIBART_LINK_DIR LIBART_LINK_FLAGS LIBART_CFLAGS)
  9. # if pkg-config was NOT found or the specified software package doesn't exist, the
  10. # variable will be empty when the function returns, otherwise they will contain the respective information
  11. #
  12. INCLUDE(FindPkgConfig)
  13. # Retain backwards compatibility with old PKGCONFIG_EXECUTABLE name.
  14. IF(PKG_CONFIG_EXECUTABLE)
  15. SET(PKGCONFIG_EXECUTABLE ${PKG_CONFIG_EXECUTABLE})
  16. ELSE(PKG_CONFIG_EXECUTABLE)
  17. SET(PKGCONFIG_EXECUTABLE PKGCONFIG_EXECUTABLE-NOTFOUND)
  18. ENDIF(PKG_CONFIG_EXECUTABLE)