]> SALOME platform Git repositories - modules/hydrosolver.git/commitdiff
Salome HOME
Modification for new interface of openturns + cleanup
authorYoann AUDOUIN <B61570@dsp0761867.postes.calibre.edf.fr>
Thu, 4 May 2017 07:55:08 +0000 (09:55 +0200)
committerYoann AUDOUIN <B61570@dsp0761867.postes.calibre.edf.fr>
Fri, 12 May 2017 08:04:17 +0000 (10:04 +0200)
adm_local/cmake_files/FindTelemac.cmake

index b9a32d28ce2e9e2fb6b0cebf88a8aeee922197d0..6e7ee810e6a2a5d21b0b0fc9cc84e5977c5d767e 100644 (file)
 #  along with SALOME HYDRO module.  If not, see <http://www.gnu.org/licenses/>.
 
 FIND_LIBRARY(TELEMAC_LIBRARY_api api
-             PATHS ${TELEMAC_ROOT_DIR}/builds/salome/wrap_api/lib)
+  PATHS ${TELEMAC_ROOT_DIR}/builds/${USETELCFG}/wrap_api/lib)
 FIND_LIBRARY(TELEMAC_LIBRARY_bief bief
-             PATHS ${TELEMAC_ROOT_DIR}/builds/salome/wrap_api/lib)
+             PATHS ${TELEMAC_ROOT_DIR}/builds/${USETELCFG}/wrap_api/lib)
 FIND_LIBRARY(TELEMAC_LIBRARY_damocles damocles
-             PATHS ${TELEMAC_ROOT_DIR}/builds/salome/wrap_api/lib)
+             PATHS ${TELEMAC_ROOT_DIR}/builds/${USETELCFG}/wrap_api/lib)
 FIND_LIBRARY(TELEMAC_LIBRARY_parallel parallel
-             PATHS ${TELEMAC_ROOT_DIR}/builds/salome/wrap_api/lib)
+             PATHS ${TELEMAC_ROOT_DIR}/builds/${USETELCFG}/wrap_api/lib)
 FIND_LIBRARY(TELEMAC_LIBRARY_sisyphe sisyphe
-             PATHS ${TELEMAC_ROOT_DIR}/builds/salome/wrap_api/lib)
+             PATHS ${TELEMAC_ROOT_DIR}/builds/${USETELCFG}/wrap_api/lib)
 FIND_LIBRARY(TELEMAC_LIBRARY_special special
-             PATHS ${TELEMAC_ROOT_DIR}/builds/salome/wrap_api/lib)
+             PATHS ${TELEMAC_ROOT_DIR}/builds/${USETELCFG}/wrap_api/lib)
 FIND_LIBRARY(TELEMAC_LIBRARY_telemac2d telemac2d
-             PATHS ${TELEMAC_ROOT_DIR}/builds/salome/wrap_api/lib)
+             PATHS ${TELEMAC_ROOT_DIR}/builds/${USETELCFG}/wrap_api/lib)
 FIND_LIBRARY(TELEMAC_LIBRARY_tomawac tomawac
-             PATHS ${TELEMAC_ROOT_DIR}/builds/salome/wrap_api/lib)
+             PATHS ${TELEMAC_ROOT_DIR}/builds/${USETELCFG}/wrap_api/lib)
 # FIND_LIBRARY(TELEMAC_LIBRARY_gretel gretel
-#              PATHS ${TELEMAC_ROOT_DIR}/salome/wrap_api/lib)
+#              PATHS ${TELEMAC_ROOT_DIR}/${USETELCFG}/wrap_api/lib)
 # FIND_LIBRARY(TELEMAC_LIBRARY_partel partel
-#              PATHS ${TELEMAC_ROOT_DIR}/salome/wrap_api/lib)
+#              PATHS ${TELEMAC_ROOT_DIR}/${USETELCFG}/wrap_api/lib)
 FIND_LIBRARY(TELEMAC_LIBRARY_hermes hermes
-             PATHS ${TELEMAC_ROOT_DIR}/builds/salome/wrap_api/lib)
+             PATHS ${TELEMAC_ROOT_DIR}/builds/${USETELCFG}/wrap_api/lib)
 IF(NOT EXISTS ${TELEMAC_LIBRARY_hermes})
   MESSAGE("Warning: ${TELEMAC_LIBRARY_hermes} does not exist")
   SET(TELEMAC_LIBRARY_hermes "")
 ENDIF()
-FIND_PATH(TELEMAC_INCLUDE_DIR interface_telemac2d.mod
-          PATHS ${TELEMAC_ROOT_DIR}/builds/salome/wrap_api/include)
-FIND_PATH(TELEMAC_API_SRC_DIR api_interface.f90
-          PATHS ${TELEMAC_ROOT_DIR}/builds/salome/wrap_api/src)
 
 # The order of the libraries is important for the API wrapper compilation
 SET(TELEMAC_LIBRARIES ${TELEMAC_LIBRARY_api}