aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <montel@kde.org>2007-03-22 13:47:22 +0000
committerLaurent Montel <montel@kde.org>2007-03-22 13:47:22 +0000
commit90041a6a83ce05832de17840433e210739f128ad (patch)
tree546fc28db4e9304dd968641ab72030348fb6412a
parent76ffa19584d19690490bc18daa00e21d15c6a5a1 (diff)
downloadextra-cmake-modules-90041a6a83ce05832de17840433e210739f128ad.tar.gz
extra-cmake-modules-90041a6a83ce05832de17840433e210739f128ad.tar.bz2
Remove cmake file which is already merge into cmake official package
svn path=/trunk/KDE/kdelibs/; revision=645382
-rw-r--r--modules/CMakeLists.txt5
-rw-r--r--modules/CheckCXXCompilerFlag.cmake21
-rw-r--r--modules/FindASPELL.cmake40
-rw-r--r--modules/FindBZip2.cmake43
-rw-r--r--modules/FindHSPELL.cmake42
-rw-r--r--modules/FindJasper.cmake43
6 files changed, 5 insertions, 189 deletions
diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt
index 6078e433..e1bcdbe5 100644
--- a/modules/CMakeLists.txt
+++ b/modules/CMakeLists.txt
@@ -19,6 +19,11 @@ set(FILES_TO_REMOVE
${module_install_dir}/UsePkgconfig.cmake
${module_install_dir}/kde3uic.cmake
${module_install_dir}/kde3init_dummy.cpp.in
+ ${module_install_dir}/FindASPELL.cmake
+ ${module_install_dir}/FindHSPELL.cmake
+ ${module_install_dir}/FindJasper.cmake
+ ${module_install_dir}/CheckCXXCompilerFlag.cmake
+ ${module_install_dir}/FindBZip2.cmake
)
# can be removed once we require merge into cmake
diff --git a/modules/CheckCXXCompilerFlag.cmake b/modules/CheckCXXCompilerFlag.cmake
deleted file mode 100644
index 43ea9a64..00000000
--- a/modules/CheckCXXCompilerFlag.cmake
+++ /dev/null
@@ -1,21 +0,0 @@
-# - Check whether the CXX compiler supports a given flag.
-# CHECK_CXX_COMPILER_FLAG(FLAG VARIABLE)
-#
-# FLAG - the compiler flag
-# VARIABLE - variable to store the result
-
-# 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.
-
-
-INCLUDE(CheckCXXSourceCompiles)
-
-MACRO (CHECK_CXX_COMPILER_FLAG _FLAG _RESULT)
- SET(SAFE_CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS}")
- SET(CMAKE_REQUIRED_DEFINITIONS "${_FLAG}")
- CHECK_CXX_SOURCE_COMPILES("int main() { return 0;}" ${_RESULT})
- SET (CMAKE_REQUIRED_DEFINITIONS "${SAFE_CMAKE_REQUIRED_DEFINITIONS}")
-ENDMACRO (CHECK_CXX_COMPILER_FLAG)
-
diff --git a/modules/FindASPELL.cmake b/modules/FindASPELL.cmake
deleted file mode 100644
index 978407d6..00000000
--- a/modules/FindASPELL.cmake
+++ /dev/null
@@ -1,40 +0,0 @@
-# - Try to find ASPELL
-# Once done this will define
-#
-# ASPELL_FOUND - system has ASPELL
-# ASPELL_INCLUDE_DIR - the ASPELL include directory
-# ASPELL_LIBRARIES - The libraries needed to use ASPELL
-# ASPELL_DEFINITIONS - Compiler switches required for using ASPELL
-
-# 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 (ASPELL_INCLUDE_DIR AND ASPELL_LIBRARIES)
- # Already in cache, be silent
- SET(ASPELL_FIND_QUIETLY TRUE)
-ENDIF (ASPELL_INCLUDE_DIR AND ASPELL_LIBRARIES)
-
-FIND_PATH(ASPELL_INCLUDE_DIR aspell.h )
-
-FIND_LIBRARY(ASPELL_LIBRARIES NAMES aspell aspell-15)
-
-IF (ASPELL_INCLUDE_DIR AND ASPELL_LIBRARIES)
- SET(ASPELL_FOUND TRUE)
-ELSE (ASPELL_INCLUDE_DIR AND ASPELL_LIBRARIES)
- SET(ASPELL_FOUND FALSE)
-ENDIF (ASPELL_INCLUDE_DIR AND ASPELL_LIBRARIES)
-
-IF (ASPELL_FOUND)
- IF (NOT ASPELL_FIND_QUIETLY)
- MESSAGE(STATUS "Found ASPELL: ${ASPELL_LIBRARIES}")
- ENDIF (NOT ASPELL_FIND_QUIETLY)
-ELSE (ASPELL_FOUND)
- IF (ASPELL_FIND_REQUIRED)
- MESSAGE(FATAL_ERROR "Could NOT find ASPELL")
- ENDIF (ASPELL_FIND_REQUIRED)
-ENDIF (ASPELL_FOUND)
-
-MARK_AS_ADVANCED(ASPELL_INCLUDE_DIR ASPELL_LIBRARIES)
diff --git a/modules/FindBZip2.cmake b/modules/FindBZip2.cmake
deleted file mode 100644
index c8464249..00000000
--- a/modules/FindBZip2.cmake
+++ /dev/null
@@ -1,43 +0,0 @@
-# - Try to find BZip2
-# Once done this will define
-#
-# BZIP2_FOUND - system has BZip2
-# BZIP2_INCLUDE_DIR - the BZip2 include directory
-# BZIP2_LIBRARIES - Link these to use BZip2
-# BZIP2_DEFINITIONS - Compiler switches required for using BZip2
-# BZIP2_NEED_PREFIX - this is set if the functions are prefixed with BZ2_
-
-# 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 (BZIP2_INCLUDE_DIR AND BZIP2_LIBRARIES)
- SET(BZip2_FIND_QUIETLY TRUE)
-ENDIF (BZIP2_INCLUDE_DIR AND BZIP2_LIBRARIES)
-
-FIND_PATH(BZIP2_INCLUDE_DIR bzlib.h )
-
-FIND_LIBRARY(BZIP2_LIBRARIES NAMES bz2 bzip2 )
-
-IF (BZIP2_INCLUDE_DIR AND BZIP2_LIBRARIES)
- SET(BZIP2_FOUND TRUE)
- INCLUDE(CheckLibraryExists)
- CHECK_LIBRARY_EXISTS(${BZIP2_LIBRARIES} BZ2_bzCompressInit "" BZIP2_NEED_PREFIX)
-ELSE (BZIP2_INCLUDE_DIR AND BZIP2_LIBRARIES)
- SET(BZIP2_FOUND FALSE)
-ENDIF (BZIP2_INCLUDE_DIR AND BZIP2_LIBRARIES)
-
-IF (BZIP2_FOUND)
- IF (NOT BZip2_FIND_QUIETLY)
- MESSAGE(STATUS "Found BZip2: ${BZIP2_LIBRARIES}")
- ENDIF (NOT BZip2_FIND_QUIETLY)
-ELSE (BZIP2_FOUND)
- IF (BZip2_FIND_REQUIRED)
- MESSAGE(FATAL_ERROR "Could NOT find BZip2")
- ENDIF (BZip2_FIND_REQUIRED)
-ENDIF (BZIP2_FOUND)
-
-MARK_AS_ADVANCED(BZIP2_INCLUDE_DIR BZIP2_LIBRARIES)
-
diff --git a/modules/FindHSPELL.cmake b/modules/FindHSPELL.cmake
deleted file mode 100644
index a2b93a77..00000000
--- a/modules/FindHSPELL.cmake
+++ /dev/null
@@ -1,42 +0,0 @@
-# - Try to find HSPELL
-# Once done this will define
-#
-# HSPELL_FOUND - system has HSPELL
-# HSPELL_INCLUDE_DIR - the HSPELL include directory
-# HSPELL_LIBRARIES - The libraries needed to use HSPELL
-# HSPELL_DEFINITIONS - Compiler switches required for using HSPELL
-
-# 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 (HSPELL_INCLUDE_DIR AND HSPELL_LIBRARIES)
- # Already in cache, be silent
- SET(HSPELL_FIND_QUIETLY TRUE)
-ENDIF (HSPELL_INCLUDE_DIR AND HSPELL_LIBRARIES)
-
-
-FIND_PATH(HSPELL_INCLUDE_DIR hspell.h )
-
-FIND_LIBRARY(HSPELL_LIBRARIES NAMES hspell )
-
-IF (HSPELL_INCLUDE_DIR AND HSPELL_LIBRARIES)
- SET(HSPELL_FOUND TRUE)
-ELSE (HSPELL_INCLUDE_DIR AND HSPELL_LIBRARIES)
- SET(HSPELL_FOUND FALSE)
-ENDIF (HSPELL_INCLUDE_DIR AND HSPELL_LIBRARIES)
-
-IF (HSPELL_FOUND)
- IF (NOT HSPELL_FIND_QUIETLY)
- MESSAGE(STATUS "Found HSPELL: ${HSPELL_LIBRARIES}")
- ENDIF (NOT HSPELL_FIND_QUIETLY)
-ELSE (HSPELL_FOUND)
- IF (HSPELL_FIND_REQUIRED)
- MESSAGE(FATAL_ERROR "Could NOT find HSPELL")
- ENDIF (HSPELL_FIND_REQUIRED)
-ENDIF (HSPELL_FOUND)
-
-MARK_AS_ADVANCED(HSPELL_INCLUDE_DIR HSPELL_LIBRARIES)
-
diff --git a/modules/FindJasper.cmake b/modules/FindJasper.cmake
deleted file mode 100644
index ac284c37..00000000
--- a/modules/FindJasper.cmake
+++ /dev/null
@@ -1,43 +0,0 @@
-# - Try to find the Jasper JPEG2000 library
-# Once done this will define
-#
-# JASPER_FOUND - system has Jasper
-# JASPER_INCLUDE_DIR - the Jasper include directory
-# JASPER_LIBRARIES - The libraries needed to use Jasper
-
-# 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.
-
-
-FIND_PACKAGE(JPEG)
-
-IF (JASPER_INCLUDE_DIR AND JASPER_LIBRARIES AND JPEG_LIBRARIES)
- # Already in cache, be silent
- SET(Jasper_FIND_QUIETLY TRUE)
-ENDIF (JASPER_INCLUDE_DIR AND JASPER_LIBRARIES AND JPEG_LIBRARIES)
-
-FIND_PATH(JASPER_INCLUDE_DIR jasper/jasper.h)
-
-FIND_LIBRARY(JASPER_LIBRARY NAMES jasper libjasper)
-
-IF (JASPER_INCLUDE_DIR AND JASPER_LIBRARY AND JPEG_LIBRARIES)
- SET(JASPER_FOUND TRUE)
- SET(JASPER_LIBRARIES ${JASPER_LIBRARY} ${JPEG_LIBRARIES} )
-ELSE (JASPER_INCLUDE_DIR AND JASPER_LIBRARY AND JPEG_LIBRARIES)
- SET(JASPER_FOUND FALSE)
-ENDIF (JASPER_INCLUDE_DIR AND JASPER_LIBRARY AND JPEG_LIBRARIES)
-
-
-IF (JASPER_FOUND)
- IF (NOT Jasper_FIND_QUIETLY)
- MESSAGE(STATUS "Found jasper: ${JASPER_LIBRARIES}")
- ENDIF (NOT Jasper_FIND_QUIETLY)
-ELSE (JASPER_FOUND)
- IF (Jasper_FIND_REQUIRED)
- MESSAGE(FATAL_ERROR "Could NOT find jasper library")
- ENDIF (Jasper_FIND_REQUIRED)
-ENDIF (JASPER_FOUND)
-
-MARK_AS_ADVANCED(JASPER_INCLUDE_DIR JASPER_LIBRARIES JASPER_LIBRARY)