aboutsummaryrefslogtreecommitdiff
path: root/modules/FindAGG.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2006-02-12 14:38:04 +0000
committerAlexander Neundorf <neundorf@kde.org>2006-02-12 14:38:04 +0000
commit75a07dd38b4a491a9d16d24492bea5c6ba90a8ff (patch)
tree0a65094e22bba335545b8ffe4a33fe7790edb21c /modules/FindAGG.cmake
parentbce40e0de3b22a291ecaa2b75358e6a998e1579b (diff)
downloadextra-cmake-modules-75a07dd38b4a491a9d16d24492bea5c6ba90a8ff.tar.gz
extra-cmake-modules-75a07dd38b4a491a9d16d24492bea5c6ba90a8ff.tar.bz2
-moved the cmake code to find kdewin32 out of FindKDE4.cmake and into its own FindKDEWIN32.cmake file
-added a new FindGNUWIN32.cmake file, which tries to find the gnuwin32 base directory -changed all "FOO_LIBRARY" variable names to "FOO_LIBRARIES" to be more consistent with the other cmake modules -added a macro_getenv_win_path() which replaces all backslahes with slashes from environment variables -modified the kde4_add_kcfg_files() command, so that the generated header is also processed by moc -all tests compile and link Alex CCMAIL:kde-buildsystem@kde.org The changes to the windows stuff are untested, since I don't have a windows box. Please check that everything still works. Please have a look at FindGNUWIN32.cmake, there are probably ways to improve this. The resulting GNUWIN32_DIR variable is used in other cmake modules as default path to search for headers and libraries. svn path=/trunk/KDE/kdelibs/; revision=508648
Diffstat (limited to 'modules/FindAGG.cmake')
-rw-r--r--modules/FindAGG.cmake13
1 files changed, 7 insertions, 6 deletions
diff --git a/modules/FindAGG.cmake b/modules/FindAGG.cmake
index 8d294b18..ed02a46c 100644
--- a/modules/FindAGG.cmake
+++ b/modules/FindAGG.cmake
@@ -1,9 +1,9 @@
-# - Try to find AGG
+# - Try to find the AGG graphics library
# Once done this will define
#
# AGG_FOUND - system has AGG
# AGG_INCLUDE_DIR - the AGG include directory
-# AGG_LIBRARY - Link these to use OpenGL and GLU
+# AGG_LIBRARIES - Link these to use AGG
# AGG_DEFINITIONS - Compiler switches required for using AGG
#
@@ -22,20 +22,20 @@ FIND_PATH(AGG_INCLUDE_DIR agg2/agg_pixfmt_gray.h
/usr/local/include
)
-FIND_LIBRARY(AGG_LIBRARY NAMES agg
+FIND_LIBRARY(AGG_LIBRARIES NAMES agg
PATHS
${_AGGLinkDir}
/usr/lib
/usr/local/lib
)
-IF(AGG_INCLUDE_DIR AND AGG_LIBRARY)
+IF(AGG_INCLUDE_DIR AND AGG_LIBRARIES)
SET(AGG_FOUND TRUE)
-ENDIF(AGG_INCLUDE_DIR AND AGG_LIBRARY)
+ENDIF(AGG_INCLUDE_DIR AND AGG_LIBRARIES)
IF(AGG_FOUND)
IF(NOT AGG_FIND_QUIETLY)
- MESSAGE(STATUS "Found AGG: ${AGG_LIBRARY}")
+ MESSAGE(STATUS "Found AGG: ${AGG_LIBRARIES}")
ENDIF(NOT AGG_FIND_QUIETLY)
ELSE(AGG_FOUND)
IF(AGG_FIND_REQUIRED)
@@ -43,3 +43,4 @@ ELSE(AGG_FOUND)
ENDIF(AGG_FIND_REQUIRED)
ENDIF(AGG_FOUND)
+MARK_AS_ADVANCED(AGG_INCLUDE_DIR AGG_LIBRARIES)