2006-11-22 21:44:59 +03:00
|
|
|
# - obsolete pkg-config module for CMake
|
2006-03-15 21:20:03 +03:00
|
|
|
#
|
2006-11-22 21:44:59 +03:00
|
|
|
# Includes FindPkgConfig.cmake which defines
|
2006-03-15 21:20:03 +03:00
|
|
|
#
|
|
|
|
# PKGCONFIG(package includedir libdir linkflags cflags)
|
|
|
|
#
|
|
|
|
# Calling PKGCONFIG will fill the desired information into the 4 given arguments,
|
|
|
|
# e.g. PKGCONFIG(libart-2.0 LIBART_INCLUDE_DIR LIBART_LINK_DIR LIBART_LINK_FLAGS LIBART_CFLAGS)
|
|
|
|
# if pkg-config was NOT found or the specified software package doesn't exist, the
|
|
|
|
# variable will be empty when the function returns, otherwise they will contain the respective information
|
|
|
|
#
|
|
|
|
|
2006-11-22 21:44:59 +03:00
|
|
|
INCLUDE(FindPkgConfig)
|
2006-11-30 00:12:40 +03:00
|
|
|
# Retain backwards compatibility with old PKGCONFIG_EXECUTABLE name.
|
|
|
|
IF(PKG_CONFIG_EXECUTABLE)
|
|
|
|
SET(PKGCONFIG_EXECUTABLE ${PKG_CONFIG_EXECUTABLE})
|
|
|
|
ELSE(PKG_CONFIG_EXECUTABLE)
|
|
|
|
SET(PKGCONFIG_EXECUTABLE PKGCONFIG_EXECUTABLE-NOTFOUND)
|
|
|
|
ENDIF(PKG_CONFIG_EXECUTABLE)
|
|
|
|
|