diff options
| author | Tomáš Chvátal <scarabeus@gentoo.org> | 2009-11-04 18:01:25 +0100 |
|---|---|---|
| committer | Tomáš Chvátal <scarabeus@gentoo.org> | 2009-11-04 18:01:25 +0100 |
| commit | 710843e4dfd146257500be7ad9c0a5c0d61e56c4 (patch) | |
| tree | ddbb2e744296480c11ce6822ffb80678043f9c25 /cmake/FindCairo.cmake | |
| parent | cbeea28cabebfc45fc0ff0b6446c818b72d8c4cc (diff) | |
Use PkgConfig where possible
TODO: gettext, SDL_ttf
Drop windows bundled libs, since .pc should be able to pick them up on
windows too.
Diffstat (limited to 'cmake/FindCairo.cmake')
| -rw-r--r-- | cmake/FindCairo.cmake | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/cmake/FindCairo.cmake b/cmake/FindCairo.cmake deleted file mode 100644 index 22ace55..0000000 --- a/cmake/FindCairo.cmake +++ /dev/null @@ -1,46 +0,0 @@ -# - try to find Cairo -# Once done this will define -# -# CAIRO_FOUND - system has Cairo -# CAIRO_LIBRARIES - Link these to use Cairo -# CAIRO_INCLUDE_DIR - where to find zip.h, etc. -# -# Copyright (c) 2007, Pino Toscano, <pino@kde.org> -# Copyright (c) 2009, Tomas Chvatal, <scarabeus@gentoo.org> -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - -IF(CAIRO_LIBRARIES AND CAIRO_INCLUDE_DIR) - # Already in cache, be silent - SET(CAIRO_FIND_QUIETLY TRUE) -ELSE(CAIRO_LIBRARIES AND CAIRO_INCLUDE_DIR) - # we need the svg cairo part so why not :] - # normally we should search for cairo.h only - FIND_PATH ( CAIRO_INCLUDE_DIR cairo-svg.h - PATH_SUFFIXES cairo - PATHS - /usr/local/include - /usr/include - NO_DEFAULT_PATH - ) - FIND_LIBRARY ( CAIRO_LIBRARIES cairo - PATH_SUFFIXES lib64 lib - PATHS - /usr/local - /usr - NO_DEFAULT_PATH - ) - # handle the QUIETLY and REQUIRED arguments and set CAIRO_FOUND to TRUE if - # all listed variables are TRUE - INCLUDE(FindPackageHandleStandardArgs) - FIND_PACKAGE_HANDLE_STANDARD_ARGS(CAIRO DEFAULT_MSG CAIRO_LIBRARIES CAIRO_INCLUDE_DIR) - IF(NOT CAIRO_FOUND) - IF(CAIRO_REQUIRED) - MESSAGE(FATAL_ERROR "libcairo not found") - ENDIF(CAIRO_REQUIRED) - SET(CAIRO_LIBRARIES) - ENDIF(NOT CAIRO_FOUND) -ENDIF(CAIRO_LIBRARIES AND CAIRO_INCLUDE_DIR) - -MARK_AS_ADVANCED( CAIRO_LIBRARIES CAIRO_INCLUDE_DIR ) |