Salome HOME
Copyrights update 2015.
[samples/sierpinsky.git] / adm_local / cmake_files / FindSalomeLibGd.cmake
index 3698c1845202ab6e0cb6d683a5cc3265a703a145..b30b5ef3425f1401d57cbdeecd54dc5e1946ec1a 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright (C) 2013  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2013-2015  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(LibGd LIBGD_INCLUDE_DIRS 1)
 MARK_AS_ADVANCED(LIBGD_INCLUDE_DIRS LIBGD_LIBRARIES)
 
-SALOME_ACCUMULATE_HEADERS(LIBGD_INCLUDE_DIRS)
+IF(LIBGD_FOUND)
+  SALOME_ACCUMULATE_HEADERS(LIBGD_INCLUDE_DIRS)
+  SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH ${LIBGD_LIBRARIES})
+ENDIF()