From 75a07dd38b4a491a9d16d24492bea5c6ba90a8ff Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Sun, 12 Feb 2006 14:38:04 +0000 Subject: -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 --- modules/FindAGG.cmake | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'modules/FindAGG.cmake') 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) -- cgit v1.2.1