2013-10-11 18:38:59 +06:00
|
|
|
# - Find NETGEN
|
|
|
|
# Sets the following variables:
|
2013-10-14 19:44:14 +06:00
|
|
|
# NETGEN_INCLUDE_DIRS - path to the NETGEN include directories
|
2013-10-11 18:38:59 +06:00
|
|
|
# NETGEN_LIBRARIES - path to the NETGEN libraries to be linked against
|
|
|
|
#
|
|
|
|
|
|
|
|
#########################################################################
|
2013-04-01 19:28:55 +06:00
|
|
|
# Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
|
2012-08-09 17:45:31 +06:00
|
|
|
#
|
2013-10-11 18:38:59 +06:00
|
|
|
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
|
|
|
# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
|
|
|
#
|
2012-08-09 17:45:31 +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
|
|
|
|
# version 2.1 of the License.
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
#
|
|
|
|
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
|
|
|
#
|
|
|
|
|
2013-10-11 18:38:59 +06:00
|
|
|
# ------
|
|
|
|
|
2013-10-14 19:44:14 +06:00
|
|
|
IF(NOT Netgen_FIND_QUIETLY)
|
|
|
|
MESSAGE(STATUS "Check for Netgen ...")
|
|
|
|
ENDIF()
|
2013-10-11 18:38:59 +06:00
|
|
|
|
|
|
|
# ------
|
|
|
|
|
|
|
|
SET(NETGEN_ROOT_DIR $ENV{NETGEN_ROOT_DIR})
|
2012-08-09 17:45:31 +06:00
|
|
|
|
2013-10-11 18:38:59 +06:00
|
|
|
IF(NETGEN_ROOT_DIR)
|
|
|
|
LIST(APPEND CMAKE_PREFIX_PATH "${NETGEN_ROOT_DIR}")
|
|
|
|
ENDIF(NETGEN_ROOT_DIR)
|
2012-08-09 17:45:31 +06:00
|
|
|
|
2013-10-14 19:44:14 +06:00
|
|
|
FIND_PATH(_netgen_base_inc_dir nglib.h)
|
|
|
|
SET(NETGEN_INCLUDE_DIRS ${_netgen_base_inc_dir})
|
|
|
|
FIND_PATH(_netgen_add_inc_dir occgeom.hpp HINTS ${_netgen_base_inc_dir} PATH_SUFFIXES share/netgen/include)
|
|
|
|
LIST(APPEND NETGEN_INCLUDE_DIRS ${_netgen_add_inc_dir})
|
|
|
|
LIST(REMOVE_DUPLICATES NETGEN_INCLUDE_DIRS)
|
|
|
|
|
2013-10-11 18:38:59 +06:00
|
|
|
FIND_LIBRARY(NETGEN_LIBRARIES NAMES nglib)
|
2012-08-09 17:45:31 +06:00
|
|
|
|
2013-10-11 18:38:59 +06:00
|
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(NETGEN REQUIRED_VARS NETGEN_INCLUDE_DIRS NETGEN_LIBRARIES)
|
2013-10-14 19:44:14 +06:00
|
|
|
|
|
|
|
IF(NETGEN_FOUND)
|
|
|
|
IF(NOT Netgen_FIND_QUIETLY)
|
|
|
|
MESSAGE(STATUS "Netgen library: ${NETGEN_LIBRARIES}")
|
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|