aboutsummaryrefslogtreecommitdiff
path: root/attic/modules/FindAGG.cmake
diff options
context:
space:
mode:
authorChristophe Giboudeaux <christophe@krop.fr>2021-03-29 20:28:58 +0200
committerChristophe Giboudeaux <christophe@krop.fr>2021-04-06 19:59:17 +0000
commit272352969834598cfd20f3e8b15916aa3ccebbbb (patch)
treed0d831203f0816ee2d4edecb526cdbdec64ea3d4 /attic/modules/FindAGG.cmake
parentd88db6a1469bdcb48e64f265d35a6f7867767b54 (diff)
downloadextra-cmake-modules-272352969834598cfd20f3e8b15916aa3ccebbbb.tar.gz
extra-cmake-modules-272352969834598cfd20f3e8b15916aa3ccebbbb.tar.bz2
Clean ECM's attic
Diffstat (limited to 'attic/modules/FindAGG.cmake')
-rw-r--r--attic/modules/FindAGG.cmake53
1 files changed, 0 insertions, 53 deletions
diff --git a/attic/modules/FindAGG.cmake b/attic/modules/FindAGG.cmake
deleted file mode 100644
index 86d5618a..00000000
--- a/attic/modules/FindAGG.cmake
+++ /dev/null
@@ -1,53 +0,0 @@
-# - 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_LIBRARIES - Link these to use AGG
-# AGG_DEFINITIONS - Compiler switches required for using AGG
-
-# Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org>
-#
-# Redistribution and use is allowed according to the terms of the BSD license.
-# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
-
-if (AGG_INCLUDE_DIR AND AGG_LIBRARIES)
-
- # in cache already
- set(AGG_FOUND TRUE)
-
-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
- find_package(PkgConfig)
- pkg_check_modules(PC_AGG QUIET libagg)
-
- set(AGG_DEFINITIONS ${PC_AGG_CFLAGS_OTHER})
- endif (NOT WIN32)
-
- find_path(AGG_INCLUDE_DIR agg2/agg_pixfmt_gray.h
- PATHS ${PC_AGG_INCLUDEDIR} ${PC_AGG_INCLUDE_DIRS}
- )
-
- find_library(AGG_LIBRARIES NAMES agg
- PATHS ${PC_AGG_LIBDIR} ${PC_AGG_LIBRARY_DIRS}
- )
-
- if (AGG_INCLUDE_DIR AND AGG_LIBRARIES)
- set(AGG_FOUND TRUE)
- endif (AGG_INCLUDE_DIR AND AGG_LIBRARIES)
-
- if (AGG_FOUND)
- if (NOT AGG_FIND_QUIETLY)
- message(STATUS "Found AGG: ${AGG_LIBRARIES}")
- endif (NOT AGG_FIND_QUIETLY)
- else (AGG_FOUND)
- if (AGG_FIND_REQUIRED)
- message(FATAL_ERROR "Could NOT find AGG")
- endif (AGG_FIND_REQUIRED)
- endif (AGG_FOUND)
-
- mark_as_advanced(AGG_INCLUDE_DIR AGG_LIBRARIES)
-
-endif (AGG_INCLUDE_DIR AND AGG_LIBRARIES)