From 31413db3eb0f57ae8aac20c589262d56d36416d8 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Tue, 8 Nov 2016 20:07:38 +0100 Subject: Remove unused CMake modules --- common/cmake/FindGObjectIntrospection.cmake | 61 ----------------------------- common/cmake/FindNumpy.cmake | 57 --------------------------- 2 files changed, 118 deletions(-) delete mode 100644 common/cmake/FindGObjectIntrospection.cmake delete mode 100644 common/cmake/FindNumpy.cmake (limited to 'common') diff --git a/common/cmake/FindGObjectIntrospection.cmake b/common/cmake/FindGObjectIntrospection.cmake deleted file mode 100644 index 2073c3c..0000000 --- a/common/cmake/FindGObjectIntrospection.cmake +++ /dev/null @@ -1,61 +0,0 @@ -# - try to find gobject-introspection -# -# Once done this will define -# -# INTROSPECTION_FOUND - system has gobject-introspection -# INTROSPECTION_SCANNER - the gobject-introspection scanner, g-ir-scanner -# INTROSPECTION_COMPILER - the gobject-introspection compiler, g-ir-compiler -# INTROSPECTION_GENERATE - the gobject-introspection generate, g-ir-generate -# INTROSPECTION_GIRDIR -# INTROSPECTION_TYPELIBDIR -# INTROSPECTION_CFLAGS -# INTROSPECTION_LIBS -# -# Copyright (C) 2010, Pino Toscano, -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - -macro(_GIR_GET_PKGCONFIG_VAR _outvar _varname) - execute_process( - COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=${_varname} gobject-introspection-1.0 - OUTPUT_VARIABLE _result - RESULT_VARIABLE _null - ) - - if (_null) - else() - string(REGEX REPLACE "[\r\n]" " " _result "${_result}") - string(REGEX REPLACE " +$" "" _result "${_result}") - separate_arguments(_result) - set(${_outvar} ${_result} CACHE INTERNAL "") - endif() -endmacro(_GIR_GET_PKGCONFIG_VAR) - -find_package(PkgConfig) -if(PKG_CONFIG_FOUND) - if(PACKAGE_FIND_VERSION_COUNT GREATER 0) - set(_gir_version_cmp ">=${PACKAGE_FIND_VERSION}") - endif() - pkg_check_modules(_pc_gir gobject-introspection-1.0${_gir_version_cmp}) - if(_pc_gir_FOUND) - set(INTROSPECTION_FOUND TRUE) - _gir_get_pkgconfig_var(INTROSPECTION_SCANNER "g_ir_scanner") - _gir_get_pkgconfig_var(INTROSPECTION_COMPILER "g_ir_compiler") - _gir_get_pkgconfig_var(INTROSPECTION_GENERATE "g_ir_generate") - _gir_get_pkgconfig_var(INTROSPECTION_GIRDIR "girdir") - _gir_get_pkgconfig_var(INTROSPECTION_TYPELIBDIR "typelibdir") - set(INTROSPECTION_CFLAGS "${_pc_gir_CFLAGS}") - set(INTROSPECTION_LIBS "${_pc_gir_LIBS}") - endif() -endif() - -mark_as_advanced( - INTROSPECTION_SCANNER - INTROSPECTION_COMPILER - INTROSPECTION_GENERATE - INTROSPECTION_GIRDIR - INTROSPECTION_TYPELIBDIR - INTROSPECTION_CFLAGS - INTROSPECTION_LIBS -) diff --git a/common/cmake/FindNumpy.cmake b/common/cmake/FindNumpy.cmake deleted file mode 100644 index 367c738..0000000 --- a/common/cmake/FindNumpy.cmake +++ /dev/null @@ -1,57 +0,0 @@ -# -# $Id: $ -# -# Author(s): Anton Deguet -# Created on: 2010-01-20 -# -# (C) Copyright 2010 Johns Hopkins University (JHU), All Rights -# Reserved. -# -# --- begin cisst license - do not edit --- -# -# This software is provided "as is" under an open source license, with -# no warranty. The complete license can be found in license.txt and -# http://www.cisst.org/cisst/license.txt. -# -# --- end cisst license --- -# -# File based on FindNUMARRAY distributed with ITK 3.4 (see itk.org) -# -# Main modifications: -# - use Numpy instead of Numarray for all naming -# - added path for Python 2.5 and 2.6 -# - renamed python script generated (det_npp became determineNumpyPath) -# - use lower case for CMake commands and keywords -# - updated python script to use get_include, not get_numpy_include which is now deprecated -# -# --- -# -# Try to find numpy python package -# Once done this will define -# -# PYTHON_NUMPY_FOUND - system has numpy development package and it should be used -# PYTHON_NUMPY_INCLUDE_DIR - directory where the arrayobject.h header file can be found -# -# -if(PYTHON_EXECUTABLE) - file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/determineNumpyPath.py "try: import numpy; print numpy.get_include()\nexcept: pass\n") - exec_program("${PYTHON_EXECUTABLE}" - ARGS "\"${CMAKE_CURRENT_BINARY_DIR}/determineNumpyPath.py\"" - OUTPUT_VARIABLE NUMPY_PATH - ) -endif(PYTHON_EXECUTABLE) - -find_path(PYTHON_NUMPY_INCLUDE_DIR arrayobject.h - "${NUMPY_PATH}/numpy/" - "${PYTHON_INCLUDE_PATH}/numpy/" - /usr/include/python2.6/numpy/ - /usr/include/python2.5/numpy/ - /usr/include/python2.4/numpy/ - /usr/include/python2.3/numpy/ - DOC "Directory where the arrayobject.h header file can be found. This file is part of the numpy package" - ) - -if(PYTHON_NUMPY_INCLUDE_DIR) - set(PYTHON_NUMPY_FOUND 1 CACHE INTERNAL "Python numpy development package is available") -endif(PYTHON_NUMPY_INCLUDE_DIR) - -- cgit v1.2.3