Salome HOME
Copyright update 2021
[tools/configuration.git] / cmake / FindSalomeMESHGEMS.cmake
index 1eadf6f7138b6d8b837243e49e8f9fec2572e4b3..171383f01f3d77f2f2c9c7365d70dab976577f9f 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2013-2016  CEA/DEN, EDF R&D
+# Copyright (C) 2013-2021  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
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
+IF(NOT DEFINED MACHINE_IS_64)
+  MESSAGE(FATAL_ERROR "Developer error -> SalomeSetupPlatform macros should be inclided before find_package(SalomeMESHGEMS) !")
+ENDIF()
+
 SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(MESHGEMS MESHGEMS_INCLUDE_DIRS 1)
-MARK_AS_ADVANCED(MESHGEMS_INCLUDE_DIRS MESHGEMS_LIBRARIES)
+MARK_AS_ADVANCED(MESHGEMS_INCLUDE_DIRS MESHGEMS_CADSURF_LIBRARY MESHGEMS_HEXA_LIBRARY MESHGEMS_HYBRID_LIBRARY MESHGEMS_TETRA_LIBRARY MESHGEMS_TETRA_HPC_LIBRARY)
 
 IF(MESHGEMS_FOUND)
   SALOME_ACCUMULATE_HEADERS(MESHGEMS_INCLUDE_DIRS)
-  SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH ${MESHGEMS_LIBRARIES})
+  SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH ${MESHGEMS_CADSURF_LIBRARY} ${MESHGEMS_HEXA_LIBRARY} ${MESHGEMS_HYBRID_LIBRARY} ${MESHGEMS_TETRA_LIBRARY} ${MESHGEMS_TETRA_HPC_LIBRARY})
 ENDIF()