2015-02-10 14:25:19 +05:00
|
|
|
# Copyright (C) 2013-2015 CEA/DEN, EDF R&D, OPEN CASCADE
|
2009-02-13 17:16:39 +05:00
|
|
|
#
|
2012-08-09 13:58:02 +06:00
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
|
|
# License as published by the Free Software Foundation; either
|
2014-02-18 12:44:41 +06:00
|
|
|
# version 2.1 of the License, or (at your option) any later version.
|
2009-02-13 17:16:39 +05:00
|
|
|
#
|
2012-08-09 13:58:02 +06:00
|
|
|
# This library is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
# Lesser General Public License for more details.
|
2009-02-13 17:16:39 +05:00
|
|
|
#
|
2012-08-09 13:58:02 +06:00
|
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
|
|
# License along with this library; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2009-02-13 17:16:39 +05:00
|
|
|
#
|
2012-08-09 13:58:02 +06:00
|
|
|
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
2009-02-13 17:16:39 +05:00
|
|
|
#
|
2013-09-10 18:47:38 +06:00
|
|
|
# Author: Adrien Bruneton
|
|
|
|
#
|
2012-08-09 13:58:02 +06:00
|
|
|
|
2013-10-29 14:07:30 +06:00
|
|
|
# OpenCV detection for Salome
|
2013-09-10 18:47:38 +06:00
|
|
|
#
|
|
|
|
# !! Please read the generic detection procedure in SalomeMacros.cmake !!
|
|
|
|
#
|
2015-05-15 14:00:16 +05:00
|
|
|
SET(UpCount 2)
|
|
|
|
|
|
|
|
IF (WIN32)
|
|
|
|
SET(UpCount 0)
|
|
|
|
ENDIF (WIN32)
|
|
|
|
|
|
|
|
SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(OpenCV OpenCV_DIR ${UpCount})
|
|
|
|
|
2013-09-10 18:47:38 +06:00
|
|
|
#MARK_AS_ADVANCED()
|
2013-10-29 14:07:30 +06:00
|
|
|
|
|
|
|
IF(OpenCV_FOUND)
|
|
|
|
SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH ${OpenCV_LIBRARIES})
|
|
|
|
ENDIF()
|