aboutsummaryrefslogtreecommitdiff
path: root/modules/FindAGG.cmake
diff options
context:
space:
mode:
authorLaurent Montel <montel@kde.org>2008-11-11 12:27:23 +0000
committerLaurent Montel <montel@kde.org>2008-11-11 12:27:23 +0000
commit7ab5b5f8cb7a33937cc17f73d25713e29048bf8b (patch)
treef6eb6f84f5120535ddce0bdca5dea4f8eac5aed0 /modules/FindAGG.cmake
parent4d7f14b63edd4e7663eb81f3ff8f564799932eb1 (diff)
downloadextra-cmake-modules-7ab5b5f8cb7a33937cc17f73d25713e29048bf8b.tar.gz
extra-cmake-modules-7ab5b5f8cb7a33937cc17f73d25713e29048bf8b.tar.bz2
Port it
svn path=/trunk/KDE/kdelibs/; revision=882776
Diffstat (limited to 'modules/FindAGG.cmake')
-rw-r--r--modules/FindAGG.cmake11
1 files changed, 5 insertions, 6 deletions
diff --git a/modules/FindAGG.cmake b/modules/FindAGG.cmake
index b52814e6..ea7905bd 100644
--- a/modules/FindAGG.cmake
+++ b/modules/FindAGG.cmake
@@ -20,19 +20,18 @@ else (AGG_INCLUDE_DIR AND AGG_LIBRARIES)
IF (NOT WIN32)
# use pkg-config to get the directories and then use these values
# in the FIND_PATH() and FIND_LIBRARY() calls
- INCLUDE(UsePkgConfig)
+ find_package(PkgConfig)
+ pkg_check_modules(AGG libagg)
- PKGCONFIG(libagg _AGGIncDir _AGGLinkDir _AGGLinkFlags _AGGCflags)
-
- set(AGG_DEFINITIONS ${_AGGCflags})
+ set(AGG_DEFINITIONS ${AGG_CFLAGS})
ENDIF (NOT WIN32)
FIND_PATH(AGG_INCLUDE_DIR agg2/agg_pixfmt_gray.h
- ${_AGGIncDir}
+ ${AGG_INCLUDE_DIRS}
)
FIND_LIBRARY(AGG_LIBRARIES NAMES agg
PATHS
- ${_AGGLinkDir}
+ ${AGG_LIBRARY_DIRS}
)
if (AGG_INCLUDE_DIR AND AGG_LIBRARIES)