2 # Sets the following variables:
3 # SIP_EXECUTABLE - path to the SIP executable
4 # SIP_INCLUDE_DIR - path to the SIP headers
6 # The header sip.h is looked for.
7 # The binary 'sip' is looked for.
10 #########################################################################
11 # Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
13 # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
14 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
16 # This library is free software; you can redistribute it and/or
17 # modify it under the terms of the GNU Lesser General Public
18 # License as published by the Free Software Foundation; either
19 # version 2.1 of the License.
21 # This library is distributed in the hope that it will be useful,
22 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24 # Lesser General Public License for more details.
26 # You should have received a copy of the GNU Lesser General Public
27 # License along with this library; if not, write to the Free Software
28 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
33 IF(NOT SIP_FIND_QUIETLY)
34 MESSAGE(STATUS "Looking for SIP ...")
37 FIND_PROGRAM(SIP_EXECUTABLE sip)
38 FIND_PATH(SIP_INCLUDE_DIR sip.h PATH_SUFFIXES python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR})
40 INCLUDE(FindPackageHandleStandardArgs)
41 FIND_PACKAGE_HANDLE_STANDARD_ARGS(SIP REQUIRED_VARS SIP_INCLUDE_DIR SIP_EXECUTABLE)