aboutsummaryrefslogtreecommitdiff
path: root/attic
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2011-08-02 22:17:42 +0200
committerAlex Neundorf <neundorf@kde.org>2011-08-02 22:17:42 +0200
commit9bd6473edf1676850c7b7700f6f2425a2335d451 (patch)
treefea289216951fbb00ab67320bd6d4d8cbfd26c6b /attic
parent93b24ec0e59e0ec0fb5610d8cb776050a873f1b5 (diff)
downloadextra-cmake-modules-9bd6473edf1676850c7b7700f6f2425a2335d451.tar.gz
extra-cmake-modules-9bd6473edf1676850c7b7700f6f2425a2335d451.tar.bz2
Remove files which are synced with cmake master now.
Alex
Diffstat (limited to 'attic')
-rw-r--r--attic/modules/FindFreetype.cmake73
-rw-r--r--attic/modules/FindGIF.cmake39
-rw-r--r--attic/modules/FindPostgreSQL.cmake33
3 files changed, 0 insertions, 145 deletions
diff --git a/attic/modules/FindFreetype.cmake b/attic/modules/FindFreetype.cmake
deleted file mode 100644
index 61e44a1f..00000000
--- a/attic/modules/FindFreetype.cmake
+++ /dev/null
@@ -1,73 +0,0 @@
-# - Try to find the freetype library
-# Once done this will define
-#
-# FREETYPE_FOUND - system has Freetype
-# FREETYPE_INCLUDE_DIRS - the FREETYPE include directories
-# FREETYPE_LIBRARIES - Link these to use FREETYPE
-# FREETYPE_INCLUDE_DIR - internal
-
-# Copyright (c) 2006, Laurent Montel, <montel@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 (FREETYPE_LIBRARIES AND FREETYPE_INCLUDE_DIR)
-
- # in cache already
- set(FREETYPE_FOUND TRUE)
-
-else (FREETYPE_LIBRARIES AND FREETYPE_INCLUDE_DIR)
-
- find_program(FREETYPECONFIG_EXECUTABLE NAMES freetype-config PATHS
- /opt/local/bin
- )
-
- #reset vars
- set(FREETYPE_LIBRARIES)
- set(FREETYPE_INCLUDE_DIR)
-
- # if freetype-config has been found
- if(FREETYPECONFIG_EXECUTABLE)
-
- exec_program(${FREETYPECONFIG_EXECUTABLE} ARGS --libs RETURN_VALUE _return_VALUE OUTPUT_VARIABLE FREETYPE_LIBRARIES)
-
- exec_program(${FREETYPECONFIG_EXECUTABLE} ARGS --cflags RETURN_VALUE _return_VALUE OUTPUT_VARIABLE _freetype_pkgconfig_output)
- if(FREETYPE_LIBRARIES AND _freetype_pkgconfig_output)
- set(FREETYPE_FOUND TRUE)
-
- # freetype-config can print out more than one -I, so we need to chop it up
- # into a list and process each entry separately
- separate_arguments(_freetype_pkgconfig_output)
- foreach(value ${_freetype_pkgconfig_output})
- string(REGEX REPLACE "-I(.+)" "\\1" value "${value}")
- set(FREETYPE_INCLUDE_DIR ${FREETYPE_INCLUDE_DIR} ${value})
- endforeach(value)
- endif(FREETYPE_LIBRARIES AND _freetype_pkgconfig_output)
-
- set( FREETYPE_LIBRARIES ${FREETYPE_LIBRARIES} )
-
- mark_as_advanced(FREETYPE_LIBRARIES FREETYPE_INCLUDE_DIR)
-
- else(FREETYPECONFIG_EXECUTABLE)
- find_path (FREETYPE_INCLUDE_DIR freetype/freetype.h PATH_SUFFIXES freetype2)
- find_library(FREETYPE_LIBRARIES freetype)
- if(FREETYPE_INCLUDE_DIR AND FREETYPE_LIBRARIES)
- set(FREETYPE_FOUND TRUE)
- endif(FREETYPE_INCLUDE_DIR AND FREETYPE_LIBRARIES)
- endif(FREETYPECONFIG_EXECUTABLE)
-
-
- if (FREETYPE_FOUND)
- if (NOT Freetype_FIND_QUIETLY)
- message(STATUS "Found Freetype: ${FREETYPE_LIBRARIES}")
- endif (NOT Freetype_FIND_QUIETLY)
- else (FREETYPE_FOUND)
- if (Freetype_FIND_REQUIRED)
- message(FATAL_ERROR "Could not find FreeType library")
- endif (Freetype_FIND_REQUIRED)
- endif (FREETYPE_FOUND)
-
-endif (FREETYPE_LIBRARIES AND FREETYPE_INCLUDE_DIR)
-
-set(FREETYPE_INCLUDE_DIRS "${FREETYPE_INCLUDE_DIR}")
diff --git a/attic/modules/FindGIF.cmake b/attic/modules/FindGIF.cmake
deleted file mode 100644
index 3dc400cf..00000000
--- a/attic/modules/FindGIF.cmake
+++ /dev/null
@@ -1,39 +0,0 @@
-# - Try to find GIF
-# Once done this will define
-#
-# GIF_FOUND - system has GIF
-# GIF_INCLUDE_DIR - the GIF include directory
-# GIF_LIBRARIES - Libraries needed to use GIF
-# GIF_DEFINITIONS - Compiler switches required for using GIF
-
-# Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
-# See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
-
-IF (GIF_INCLUDE_DIR AND GIF_LIBRARIES)
- # Already in cache, be silent
- SET(GIF_FIND_QUIETLY TRUE)
-ENDIF (GIF_INCLUDE_DIR AND GIF_LIBRARIES)
-
-FIND_PATH(GIF_INCLUDE_DIR gif_lib.h)
-
-SET(POTENTIAL_GIF_LIBS gif libgif ungif libungif giflib giflib4)
-FIND_LIBRARY(GIF_LIBRARIES NAMES ${POTENTIAL_GIF_LIBS})
-
-IF (GIF_INCLUDE_DIR AND GIF_LIBRARIES)
- SET(CMAKE_REQUIRED_INCLUDES "${GIF_INCLUDE_DIR}" "${CMAKE_REQUIRED_INCLUDES}")
- CHECK_STRUCT_MEMBER(GifFileType UserData gif_lib.h GIF_FOUND)
-ENDIF (GIF_INCLUDE_DIR AND GIF_LIBRARIES)
-
-IF (GIF_FOUND)
- IF (NOT GIF_FIND_QUIETLY)
- MESSAGE(STATUS "Found GIF: ${GIF_LIBRARIES}")
- ENDIF (NOT GIF_FIND_QUIETLY)
-ELSE (GIF_FOUND)
- IF (GIF_FIND_REQUIRED)
- MESSAGE(STATUS "Looked for GIF libraries named ${POTENTIAL_GIF_LIBS}.")
- MESSAGE(STATUS "Found no acceptable GIF library. This is fatal.")
- MESSAGE(FATAL_ERROR "Could NOT find GIF")
- ENDIF (GIF_FIND_REQUIRED)
-ENDIF (GIF_FOUND)
-
-MARK_AS_ADVANCED(GIF_INCLUDE_DIR GIF_LIBRARIES)
diff --git a/attic/modules/FindPostgreSQL.cmake b/attic/modules/FindPostgreSQL.cmake
deleted file mode 100644
index 79556120..00000000
--- a/attic/modules/FindPostgreSQL.cmake
+++ /dev/null
@@ -1,33 +0,0 @@
-# - Find PostgreSQL
-# Find the PostgreSQL includes and client library
-# This module defines
-# POSTGRESQL_INCLUDE_DIR, where to find POSTGRESQL.h
-# POSTGRESQL_LIBRARIES, the libraries needed to use POSTGRESQL.
-# POSTGRESQL_FOUND, If false, do not try to use PostgreSQL.
-
-# Copyright (c) 2006 Jarosław Staniek <staniek at 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 (POSTGRESQL_INCLUDE_DIR AND POSTGRESQL_LIBRARIES)
- # Already in cache, be silent
- set(PostgreSQL_FIND_QUIETLY TRUE)
-endif (POSTGRESQL_INCLUDE_DIR AND POSTGRESQL_LIBRARIES)
-
-
-find_path(POSTGRESQL_INCLUDE_DIR libpq-fe.h
- /usr/include/pgsql/
- /usr/local/include/pgsql/
- /usr/include/postgresql/
-)
-
-find_library(POSTGRESQL_LIBRARIES NAMES pq)
-
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(PostgreSQL DEFAULT_MSG
- POSTGRESQL_INCLUDE_DIR POSTGRESQL_LIBRARIES )
-
-mark_as_advanced(POSTGRESQL_INCLUDE_DIR POSTGRESQL_LIBRARIES)
-