Remove no longer used Find*.cmake scripts

FindDCMTK.cmake: forgotten to be removed in 44a9df40fe8e604e56d75d68e51f39198c130d58
FindGIF2.cmake: forgotten to be removed in e891dace2586104ad6fd08c7cf7c0e56d37b3a16
FindGLPK.cmake: required for the painterlymixer for unknown reason, which no longer exists (for what I saw)
FindGMM.cmake: forgotten to be removed in 8c0aa949162f9e2ec4da0874815025782ad261f2 ()
FindKunittest.cmake: this is kde3-times stuff, no longer in use
FindLIBGSF.cmake: forgotten to be removed in 65e29251823fcaa8878dc0ab917d53581437cc0b

REVIEW: 120209

thanks Lukáš for review
parent 03893d7e
#IF (DCMTK_INCLUDE_DIR AND DCMTK_LIBRARIES )
#
# SET(DCMTK_FOUND TRUE)
# MESSAGE(STATUS "Found DCMTK-SR: ${DCMTK_LIBRARIES}" )
#
#ELSE (DCMTK_INCLUDE_DIR AND DCMTK_LIBRARIES)
FIND_PATH(DCMTK_INCLUDE_DIR NAMES dcmtk PATH /usr/include /usr/local/include)
FIND_LIBRARY(DCMSR_LIBRARY NAMES dcmsr)
FIND_LIBRARY(DCMDATA_LIBRARY NAMES dcmdata)
FIND_LIBRARY(OFSTD_LIBRARY NAMES ofstd)
#MESSAGE(STATUS "Found DCMTK-SR: ${DCMSR_LIBRARY} ${DCMDATA_LIBRARY} ${OFSTD_LIBRARY}" )
IF(DCMSR_LIBRARY AND DCMDATA_LIBRARY AND OFSTD_LIBRARY AND DCMTK_INCLUDE_DIR)
SET(DCMTK_FOUND TRUE)
#set(DCMTK_LIBS ${DCMSR_LIBRARY} ${DCMDATA_LIBRARY} ${OFSTD_LIBRARY})
set(DCMTK_LIBRARIES ${DCMSR_LIBRARY} ${DCMDATA_LIBRARY} ${OFSTD_LIBRARY} )#CACHE STRINGS "Libraries needed for DICOM Structured Report Words filter")
MESSAGE(STATUS "Found DCMTK: ${DCMTK_LIBRARIES}" )
ENDIF(DCMSR_LIBRARY AND DCMDATA_LIBRARY AND OFSTD_LIBRARY AND DCMTK_INCLUDE_DIR)
#ENDIF (DCMTK_INCLUDE_DIR AND DCMTK_LIBRARIES )
# XXX: this is a copy of CMake's findGIF to override KDE's findGIF which gives an
# an error:
# CMake Error at /usr/share/kde4/apps/cmake/modules/FindGIF.cmake:24 (CHECK_STRUCT_MEMBER):
# Unknown CMake command "CHECK_STRUCT_MEMBER"
#
# This module defines
# GIF_LIBRARIES - libraries to link to in order to use GIF
# GIF_FOUND, if false, do not try to link
# GIF_INCLUDE_DIR, where to find the headers
#
# $GIF_DIR is an environment variable that would
# correspond to the ./configure --prefix=$GIF_DIR
# Created by Eric Wing.
# Modifications by Alexander Neundorf
FIND_PATH(GIF_INCLUDE_DIR gif_lib.h
HINTS
$ENV{GIF_DIR}
PATH_SUFFIXES include
PATHS
~/Library/Frameworks
/Library/Frameworks
/sw/include # Fink
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/include
/usr/freeware/include
)
# the gif library can have many names :-/
SET(POTENTIAL_GIF_LIBS gif libgif ungif libungif giflib)
FIND_LIBRARY(GIF_LIBRARY
NAMES ${POTENTIAL_GIF_LIBS}
HINTS
$ENV{GIF_DIR}
PATH_SUFFIXES lib64 lib
PATHS
~/Library/Frameworks
/Library/Frameworks
/usr/local
/usr
/sw
/opt/local
/opt/csw
/opt
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]
/usr/freeware
)
# see readme.txt
SET(GIF_LIBRARIES ${GIF_LIBRARY})
# handle the QUIETLY and REQUIRED arguments and set GIF_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GIF DEFAULT_MSG GIF_LIBRARY GIF_INCLUDE_DIR)
MARK_AS_ADVANCED(GIF_INCLUDE_DIR GIF_LIBRARY)
if (GLPK_INCLUDE_DIR)
# in cache already
set(GLPK_FOUND TRUE)
else (GLPK_INCLUDE_DIR)
find_path(GLPK_INCLUDE_DIR NAMES glpk.h
PATHS
${INCLUDE_INSTALL_DIR}
${GLPK_INCLUDE_PATH}
)
find_library(GLPK_LIBRARY glpk)
if(GLPK_INCLUDE_DIR AND GLPK_LIBRARY)
set(GLPK_FOUND TRUE)
endif(GLPK_INCLUDE_DIR AND GLPK_LIBRARY)
if(GLPK_FOUND)
# Try to find the version using glp_version(), which was introduced in 4.16
set(FIND_GLPK_VERSION_SOURCE
"#include <stdio.h>\n#include <glpk.h>\n int main()\n {\n printf(\"FOUND_GLPK_VERSION %s\\n\", glp_version());\n return 0;\n}\n")
set(FIND_GLPK_VERSION_SOURCE_FILE ${CMAKE_BINARY_DIR}/CMakeTmp/FindGLPK.cxx)
file(WRITE "${FIND_GLPK_VERSION_SOURCE_FILE}" "${FIND_GLPK_VERSION_SOURCE}")
try_run(GLPK_RUN_RESULT GLPK_COMPILE_RESULT
${CMAKE_BINARY_DIR}
${FIND_GLPK_VERSION_SOURCE_FILE}
CMAKE_FLAGS -DLINK_LIBRARIES:STRING=${GLPK_LIBRARY}
-DINCLUDE_DIRECTORIES:STRING=${GLPK_INCLUDE_DIR}
OUTPUT_VARIABLE GLPK_VERSION_OUTPUT)
if(GLPK_COMPILE_RESULT AND NOT GLPK_RUN_RESULT STREQUAL FAILED_TO_RUN)
string(REGEX REPLACE ".*FOUND_GLPK_VERSION ([0-9]+\\.[0-9]+).*" "\\1" GLPK_VERSION_STRING "${GLPK_VERSION_OUTPUT}")
string(REGEX REPLACE "^([0-9]+)\\.[0-9]+.*" "\\1" MAJOR_VERSION "${GLPK_VERSION_STRING}")
string(REGEX REPLACE "^[0-9]+\\.([0-9]+).*" "\\1" MINOR_VERSION "${GLPK_VERSION_STRING}")
if(NOT GLPK_FIND_QUIETLY)
message(STATUS "Found GLPK version ${MAJOR_VERSION}.${MINOR_VERSION}: ${GLPK_INCLUDE_DIR} ${GLPK_LIBRARY}")
endif(NOT GLPK_FIND_QUIETLY)
else(GLPK_COMPILE_RESULT AND NOT GLPK_RUN_RESULT STREQUAL FAILED_TO_RUN)
if(NOT GLPK_FIND_QUIETLY)
message(STATUS "Found GLPK but failed to find version (likely earlier than 4.16): ${GLPK_INCLUDE_DIR} ${GLPK_LIBRARY}")
file(APPEND ${CMAKE_BINARY_DIR}/CMakeFiles/CMakeError.log
"Find GLPK version failed with the following output:\n${GLPK_VERSION_OUTPUT}\nFindGLPK.cxx:\n${FIND_GLPK_VERSION_SOURCE}\n\n")
endif(NOT GLPK_FIND_QUIETLY)
set(MAJOR_VERSION 0)
set(MINOR_VERSION 0)
endif(GLPK_COMPILE_RESULT AND NOT GLPK_RUN_RESULT STREQUAL FAILED_TO_RUN)
math(EXPR VERSION "${MAJOR_VERSION}*100 + ${MINOR_VERSION}")
set(GLPK_MAJOR_VERSION ${MAJOR_VERSION} CACHE STRING "glpk major version")
set(GLPK_MINOR_VERSION ${MINOR_VERSION} CACHE STRING "glpk minor version")
set(GLPK_VERSION ${VERSION} CACHE STRING "glpk version")
else(GLPK_FOUND)
if(GLPK_FIND_REQUIRED)
message(FATAL_ERROR "Could NOT find GLPK")
endif(GLPK_FIND_REQUIRED)
endif(GLPK_FOUND)
mark_as_advanced(GLPK_INCLUDE_DIR)
mark_as_advanced(GLPK_LIBRARY)
mark_as_advanced(GLPK_MAJOR_VERSION)
mark_as_advanced(GLPK_MINOR_VERSION)
mark_as_advanced(GLPK_VERSION)
endif(GLPK_INCLUDE_DIR)
if (GMM_INCLUDE_DIR)
# in cache already
set(GMM_FOUND TRUE)
else (GMM_INCLUDE_DIR)
find_path(GMM_INCLUDE_DIR NAMES gmm/gmm.h
PATHS
${INCLUDE_INSTALL_DIR}
${GMM_INCLUDE_PATH}
)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GMM DEFAULT_MSG GMM_INCLUDE_DIR )
mark_as_advanced(GMM_INCLUDE_DIR)
endif(GMM_INCLUDE_DIR)
# - Try to find the kunittest directory library
# Once done this will define
#
# KUNITTEST_FOUND - system has kunittest
# KUNITTEST_INCLUDE_DIR - the kunittest include directory
# KUNITTEST_LIBRARIES - The libraries needed to use kunittest
FIND_PATH(KUNITTEST_INCLUDE_DIR kunittest/tester.h
${KDE4_INCLUDE_DIR}
)
FIND_LIBRARY(KUNITTEST_LIBRARIES NAMES kunittest
PATHS
${KDE4_LIB_DIR}
)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Kunittest DEFAULT_MSG KUNITTEST_INCLUDE_DIR KUNITTEST_LIBRARIES )
MARK_AS_ADVANCED(KUNITTEST_INCLUDE_DIR KUNITTEST_LIBRARIES)
# - Try to find libGSF
#
# Once done this will define
#
# LIBGSF_FOUND - System has LibGSF
# LIBGSF_INCLUDE_DIR - The LibGSF include directory
# LIBGSF_LIBRARIES - The libraries needed to use LibGSF
# LIBGSF_DEFINITIONS - Compiler switches required for using LibGSF
# LIBGSF_GSF_EXECUTABLE - The archive utility
# LIBGSF_GSFOFFICETHUMBNAILER_EXECUTABLE - The office files thumbnailer for the GNOME desktop
# LIBGSF_GSFVBADUMP_EXECUTABLE - The utility to extract Visual Basic for Applications macros
# Copyright (c) 2009, Pau Garcia i Quiles <pgquiles@elpauer.org>
# Based off FindLibXml2.cmake from CMake 2.6.4 by 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 (LIBGSF_INCLUDE_DIR AND LIBGSF_LIBRARIES)
# in cache already
SET(LIBGSF_FIND_QUIETLY TRUE)
ENDIF (LIBGSF_INCLUDE_DIR AND LIBGSF_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_LIBGSF libgsf-1)
SET(LIBGSF_DEFINITIONS ${PC_LIBGSF_CFLAGS_OTHER})
ENDIF (NOT WIN32)
FIND_PATH(LIBGSF_INCLUDE_DIR gsf/gsf.h
HINTS
${PC_LIBGSF_INCLUDEDIR}
${PC_LIBGSF_INCLUDE_DIRS}
PATH_SUFFIXES libgsf-1
)
FIND_LIBRARY(LIBGSF_LIBRARIES NAMES gsf-1 libgsf-1
HINTS
${PC_LIBGSF_LIBDIR}
${PC_LIBGSF_LIBRARY_DIRS}
)
FIND_PROGRAM(LIBGSF_GSF_EXECUTABLE gsf)
FIND_PROGRAM(LIBGSF_GSFOFFICETHUMBNAILER_EXECUTABLE gsf-office-thumbnailer)
FIND_PROGRAM(LIBGSF_GSFVBADUMP_EXECUTABLE gsf-vba-dump)
INCLUDE(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set LIBGSF_FOUND to TRUE if
# all listed variables are TRUE
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBGSF DEFAULT_MSG LIBGSF_LIBRARIES LIBGSF_INCLUDE_DIR)
MARK_AS_ADVANCED(LIBGSF_INCLUDE_DIR LIBGSF_LIBRARIES LIBGSF_GSF_EXECUTABLE LIBGSF_GSFOFFICETHUMBNAILER_EXECUTABLE LIBGSF_GSFVBADUMP_EXECUTABLE )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment