diff options
| author | Patrick Storz <eduard.braun2@gmx.de> | 2019-04-02 21:03:47 +0000 |
|---|---|---|
| committer | Patrick Storz <eduard.braun2@gmx.de> | 2019-04-02 21:03:47 +0000 |
| commit | 0d6517f328249e7e8ece3d8e4cf5247b7fd6eeb8 (patch) | |
| tree | e88af7eeb9453cd1603aa79bbd7300a0f5148694 /CMakeScripts | |
| parent | Update packaging for double-conversion (diff) | |
| download | inkscape-0d6517f328249e7e8ece3d8e4cf5247b7fd6eeb8.tar.gz inkscape-0d6517f328249e7e8ece3d8e4cf5247b7fd6eeb8.zip | |
CMake: Remove unused modules
Diffstat (limited to 'CMakeScripts')
| -rw-r--r-- | CMakeScripts/Modules/FindDBus.cmake | 72 | ||||
| -rw-r--r-- | CMakeScripts/Modules/FindGSL.cmake | 89 | ||||
| -rw-r--r-- | CMakeScripts/Modules/FindGtkSpell.cmake | 28 | ||||
| -rw-r--r-- | CMakeScripts/Modules/FindPANGOMM.cmake | 89 | ||||
| -rw-r--r-- | CMakeScripts/Modules/FindPython.cmake | 13 |
5 files changed, 0 insertions, 291 deletions
diff --git a/CMakeScripts/Modules/FindDBus.cmake b/CMakeScripts/Modules/FindDBus.cmake deleted file mode 100644 index f227cc297..000000000 --- a/CMakeScripts/Modules/FindDBus.cmake +++ /dev/null @@ -1,72 +0,0 @@ -# - Try to find the low-level D-Bus library -# Once done this will define -# -# DBUS_FOUND - system has D-Bus -# DBUS_INCLUDE_DIR - the D-Bus include directory -# DBUS_ARCH_INCLUDE_DIR - the D-Bus architecture-specific include directory -# DBUS_LIBRARIES - the libraries needed to use D-Bus - -# Copyright (c) 2008, Kevin Kofler, <kevin.kofler@chello.at> -# modeled after FindLibArt.cmake: -# 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 (DBUS_INCLUDE_DIR AND DBUS_ARCH_INCLUDE_DIR AND DBUS_LIBRARIES) - - # in cache already - SET(DBUS_FOUND TRUE) - -else (DBUS_INCLUDE_DIR AND DBUS_ARCH_INCLUDE_DIR AND DBUS_LIBRARIES) - - IF (NOT WIN32) - FIND_PACKAGE(PkgConfig) - IF (PKG_CONFIG_FOUND) - # use pkg-config to get the directories and then use these values - # in the FIND_PATH() and FIND_LIBRARY() calls - pkg_check_modules(_DBUS_PC QUIET dbus-1) - ENDIF (PKG_CONFIG_FOUND) - ENDIF (NOT WIN32) - - FIND_PATH(DBUS_INCLUDE_DIR dbus/dbus.h - ${_DBUS_PC_INCLUDE_DIRS} - /usr/include - /usr/include/dbus-1.0 - /usr/local/include - ) - - FIND_PATH(DBUS_ARCH_INCLUDE_DIR dbus/dbus-arch-deps.h - ${_DBUS_PC_INCLUDE_DIRS} - /usr/lib${LIB_SUFFIX}/include - /usr/lib${LIB_SUFFIX}/dbus-1.0/include - /usr/lib64/include - /usr/lib64/dbus-1.0/include - /usr/lib/include - /usr/lib/dbus-1.0/include - ) - - FIND_LIBRARY(DBUS_LIBRARIES NAMES dbus-1 dbus - PATHS - ${_DBUS_PC_LIBDIR} - ) - - - if (DBUS_INCLUDE_DIR AND DBUS_ARCH_INCLUDE_DIR AND DBUS_LIBRARIES) - set(DBUS_FOUND TRUE) - endif (DBUS_INCLUDE_DIR AND DBUS_ARCH_INCLUDE_DIR AND DBUS_LIBRARIES) - - - if (DBUS_FOUND) - if (NOT DBus_FIND_QUIETLY) - message(STATUS "Found D-Bus: ${DBUS_LIBRARIES}") - endif (NOT DBus_FIND_QUIETLY) - else (DBUS_FOUND) - if (DBus_FIND_REQUIRED) - message(FATAL_ERROR "Could NOT find D-Bus") - endif (DBus_FIND_REQUIRED) - endif (DBUS_FOUND) - - MARK_AS_ADVANCED(DBUS_INCLUDE_DIR DBUS_ARCH_INCLUDE_DIR DBUS_LIBRARIES) - -endif (DBUS_INCLUDE_DIR AND DBUS_ARCH_INCLUDE_DIR AND DBUS_LIBRARIES) diff --git a/CMakeScripts/Modules/FindGSL.cmake b/CMakeScripts/Modules/FindGSL.cmake deleted file mode 100644 index 1ef4643ad..000000000 --- a/CMakeScripts/Modules/FindGSL.cmake +++ /dev/null @@ -1,89 +0,0 @@ -# - Try to find GSL -# Once done this will define -# -# GSL_FOUND - system has GSL -# GSL_INCLUDE_DIRS - the GSL include directory -# GSL_LIBRARIES - Link these to use GSL -# GSL_DEFINITIONS - Compiler switches required for using GSL -# -# Copyright (c) 2008 Joshua L. Blocher <verbalshadow@gmail.com> -# -# Redistribution and use is allowed according to the terms of the New -# BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. -# - - -if (GSL_LIBRARIES AND GSL_INCLUDE_DIRS) - # in cache already - set(GSL_FOUND TRUE) -else (GSL_LIBRARIES AND GSL_INCLUDE_DIRS) - # use pkg-config to get the directories and then use these values - # in the FIND_PATH() and FIND_LIBRARY() calls - if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) - include(UsePkgConfig) - pkgconfig(gsl _GSL_INCLUDEDIR _GSL_LIBDIR _GSL_LDFLAGS _GSL_CFLAGS) - else (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) - find_package(PkgConfig) - if (PKG_CONFIG_FOUND) - pkg_check_modules(_GSL gsl) - endif (PKG_CONFIG_FOUND) - endif (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) - find_path(GSL_INCLUDE_DIR - NAMES - gsl_blas.h - PATHS - ${_GSL_INCLUDEDIR} - /usr/include - /usr/local/include - /opt/local/include - /sw/include - PATH_SUFFIXES - gsl - ) - - find_library(GSL_LIBRARY - NAMES - gsl - PATHS - ${_GSL_LIBDIR} - /usr/lib - /usr/local/lib - /opt/local/lib - /sw/lib - ) - - if (GSL_LIBRARY) - set(GSL_FOUND TRUE) - endif (GSL_LIBRARY) - - set(GSL_INCLUDE_DIRS - ${GSL_INCLUDE_DIR} - ) - - if (GSL_FOUND) - set(GSL_LIBRARIES - ${GSL_LIBRARIES} - ${GSL_LIBRARY} - ) - endif (GSL_FOUND) - - if (GSL_INCLUDE_DIRS AND GSL_LIBRARIES) - set(GSL_FOUND TRUE) - endif (GSL_INCLUDE_DIRS AND GSL_LIBRARIES) - - if (GSL_FOUND) - if (NOT GSL_FIND_QUIETLY) - message(STATUS "Found GSL: ${GSL_LIBRARIES}") - endif (NOT GSL_FIND_QUIETLY) - else (GSL_FOUND) - if (GSL_FIND_REQUIRED) - message(FATAL_ERROR "Could not find GSL") - endif (GSL_FIND_REQUIRED) - endif (GSL_FOUND) - - # show the GSL_INCLUDE_DIRS and GSL_LIBRARIES variables only in the advanced view - mark_as_advanced(GSL_INCLUDE_DIRS GSL_LIBRARIES) - -endif (GSL_LIBRARIES AND GSL_INCLUDE_DIRS) - diff --git a/CMakeScripts/Modules/FindGtkSpell.cmake b/CMakeScripts/Modules/FindGtkSpell.cmake deleted file mode 100644 index 131ad8dc8..000000000 --- a/CMakeScripts/Modules/FindGtkSpell.cmake +++ /dev/null @@ -1,28 +0,0 @@ -# - Try to find GtkSpell -# Once done this will define -# -# GTKSPELL_FOUND - system has GtkSpell -# GTKSPELL_INCLUDE_DIRS - the GtkSpell include directory -# GTKSPELL_LIBRARIES - Link these to use GtkSpell -# GTKSPELL_DEFINITIONS - Compiler switches required for using GtkSpell -# -# Copyright (c) 2008 Joshua L. Blocher <verbalshadow@gmail.com> -# -# Redistribution and use is allowed according to the terms of the New -# BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. -# - -include(${CMAKE_CURRENT_LIST_DIR}/../HelperMacros.cmake) - -if (GTKSPELL_LIBRARIES AND GTKSPELL_INCLUDE_DIRS) - # in cache already - set(GTKSPELL_FOUND TRUE) -else (GTKSPELL_LIBRARIES AND GTKSPELL_INCLUDE_DIRS) - # use pkg-config to get the directories and then use these values - # in the FIND_PATH() and FIND_LIBRARY() calls - find_package(PkgConfig) - if (PKG_CONFIG_FOUND) - INKSCAPE_PKG_CONFIG_FIND(GTKSPELL gtkspell-2.0 0 gtkspell/gtkspell.h gtkspell-2.0 gtkspell) - endif (PKG_CONFIG_FOUND) -endif (GTKSPELL_LIBRARIES AND GTKSPELL_INCLUDE_DIRS) diff --git a/CMakeScripts/Modules/FindPANGOMM.cmake b/CMakeScripts/Modules/FindPANGOMM.cmake deleted file mode 100644 index 953c49ef0..000000000 --- a/CMakeScripts/Modules/FindPANGOMM.cmake +++ /dev/null @@ -1,89 +0,0 @@ -# - Try to find PANGOMM -# Once done this will define -# -# PANGOMM_FOUND - system has PANGOMM -# PANGOMM_INCLUDE_DIRS - the PANGOMM include directory -# PANGOMM_LIBRARIES - Link these to use PANGOMM -# PANGOMM_DEFINITIONS - Compiler switches required for using PANGOMM -# -# Copyright (c) 2008 Joshua L. Blocher <verbalshadow@gmail.com> -# -# Redistribution and use is allowed according to the terms of the New -# BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. -# - - -if (PANGOMM_LIBRARIES AND PANGOMM_INCLUDE_DIRS) - # in cache already - set(PANGOMM_FOUND TRUE) -else (PANGOMM_LIBRARIES AND PANGOMM_INCLUDE_DIRS) - # use pkg-config to get the directories and then use these values - # in the FIND_PATH() and FIND_LIBRARY() calls - if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) - include(UsePkgConfig) - pkgconfig(pangomm-1.4 _PANGOMM_INCLUDEDIR _PANGOMM_LIBDIR _PANGOMM_LDFLAGS _PANGOMM_CFLAGS) - else (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) - find_package(PkgConfig) - if (PKG_CONFIG_FOUND) - pkg_check_modules(_PANGOMM pangomm-1.4) - endif (PKG_CONFIG_FOUND) - endif (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4) - find_path(PANGOMM_INCLUDE_DIR - NAMES - pangomm.h - PATHS - ${_PANGOMM_INCLUDEDIR} - /usr/include - /usr/local/include - /opt/local/include - /sw/include - PATH_SUFFIXES - pangomm-1.4 - ) - - find_library(PANGOMM-1.4_LIBRARY - NAMES - pangomm-1.4 - PATHS - ${_PANGOMM_LIBDIR} - /usr/lib - /usr/local/lib - /opt/local/lib - /sw/lib - ) - - if (PANGOMM-1.4_LIBRARY) - set(PANGOMM-1.4_FOUND TRUE) - endif (PANGOMM-1.4_LIBRARY) - - set(PANGOMM_INCLUDE_DIRS - ${PANGOMM_INCLUDE_DIR} - ) - - if (PANGOMM-1.4_FOUND) - set(PANGOMM_LIBRARIES - ${PANGOMM_LIBRARIES} - ${PANGOMM-1.4_LIBRARY} - ) - endif (PANGOMM-1.4_FOUND) - - if (PANGOMM_INCLUDE_DIRS AND PANGOMM_LIBRARIES) - set(PANGOMM_FOUND TRUE) - endif (PANGOMM_INCLUDE_DIRS AND PANGOMM_LIBRARIES) - - if (PANGOMM_FOUND) - if (NOT PANGOMM_FIND_QUIETLY) - message(STATUS "Found PANGOMM: ${PANGOMM_LIBRARIES}") - endif (NOT PANGOMM_FIND_QUIETLY) - else (PANGOMM_FOUND) - if (PANGOMM_FIND_REQUIRED) - message(FATAL_ERROR "Could not find PANGOMM") - endif (PANGOMM_FIND_REQUIRED) - endif (PANGOMM_FOUND) - - # show the PANGOMM_INCLUDE_DIRS and PANGOMM_LIBRARIES variables only in the advanced view - mark_as_advanced(PANGOMM_INCLUDE_DIRS PANGOMM_LIBRARIES) - -endif (PANGOMM_LIBRARIES AND PANGOMM_INCLUDE_DIRS) - diff --git a/CMakeScripts/Modules/FindPython.cmake b/CMakeScripts/Modules/FindPython.cmake deleted file mode 100644 index 1ac451541..000000000 --- a/CMakeScripts/Modules/FindPython.cmake +++ /dev/null @@ -1,13 +0,0 @@ -# figure out Python flags -FIND_PACKAGE(PythonInterp) -IF(PYTHONINTERP_FOUND) - EXEC_PROGRAM(${PYTHON_EXECUTABLE} - ARGS ${CMAKE_SOURCE_DIR}/makelib/python_config_var.py LIBS - OUTPUT_VARIABLE PYTHON_LINK_LIBRARIES ) - EXEC_PROGRAM(${PYTHON_EXECUTABLE} - ARGS ${CMAKE_SOURCE_DIR}/makelib/python_config_var.py LINKFORSTATIC - OUTPUT_VARIABLE PYTHON_LINKFORSTATIC ) -ELSE(PYTHONINTERP_FOUND) - SET(PYTHON_LINK_LIBRARIES "") - SET(PYTHON_LINKFORSTATIC "") -ENDIF(PYTHONINTERP_FOUND) |
