Salome HOME
Copyrights update 2015.
[plugins/netgenplugin.git] / adm_local / cmake_files / FindSalomeNetgen.cmake
index 42b51bc0d0fa6a0d431f43b415d4968e748258dd..6dd1b1a13950b614e62b068897b705c455c668d2 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright (C) 2013  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2013-2015  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 # 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.
+# version 2.1 of the License, or (at your option) any later version.
 #
 # This library is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -20,4 +20,7 @@
 SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(Netgen NETGEN_INCLUDE_DIRS 1)
 MARK_AS_ADVANCED(NETGEN_INCLUDE_DIRS NETGEN_LIBRARIES)
 
-SALOME_ACCUMULATE_HEADERS(NETGEN_INCLUDE_DIRS)
+IF(NETGEN_FOUND)
+  SALOME_ACCUMULATE_HEADERS(NETGEN_INCLUDE_DIRS)
+  SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH ${NETGEN_LIBRARIES})
+ENDIF()