]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
Export mpi libs in cmake targets. V7_8_0a1
authorOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Mon, 4 Jan 2016 16:03:03 +0000 (17:03 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Mon, 4 Jan 2016 16:22:26 +0000 (17:22 +0100)
Signed-off-by: Anthony Geay <anthony.geay@edf.fr>
src/ParaMEDCouplingCorba/CMakeLists.txt
src/ParaMEDMEMComponent/CMakeLists.txt

index d3c17138d78f69af79a64e683b78a5ddda9cbcb6..90d5929512ea34523cc966c8961693b23b99d72c 100644 (file)
@@ -33,7 +33,7 @@ SET(paramedcouplingcorba_SOURCES
 ADD_LIBRARY(paramedcouplingcorba SHARED ${paramedcouplingcorba_SOURCES})
 SET_TARGET_PROPERTIES(paramedcouplingcorba PROPERTIES COMPILE_FLAGS "${MPI_DEFINITIONS} ${OMNIORB_DEFINITIONS}")
 TARGET_LINK_LIBRARIES(paramedcouplingcorba medcouplingcorba ${MPI_LIBS})
-INSTALL(TARGETS paramedcouplingcorba DESTINATION ${SALOME_INSTALL_LIBS})
+INSTALL(TARGETS paramedcouplingcorba EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
 
 FILE(GLOB paramedcouplingcorba_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
 INSTALL(FILES ${paramedcouplingcorba_HEADERS_HXX} DESTINATION ${SALOME_INSTALL_HEADERS})
index f4580911d07f1b2dcfa2d26788d20dba1d7b2463..3246ba4678d408a7330eedde3ef37c9e2fa3e183 100644 (file)
@@ -35,7 +35,7 @@ SET(paramedmemcompo_SOURCES
 
 ADD_LIBRARY(paramedmemcompo SHARED ${paramedmemcompo_SOURCES})
 TARGET_LINK_LIBRARIES(paramedmemcompo medcouplingcorba paramedmem)
-INSTALL(TARGETS paramedmemcompo DESTINATION ${SALOME_INSTALL_LIBS})
+INSTALL(TARGETS paramedmemcompo EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
 
 FILE(GLOB paramedmemcompo_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
 INSTALL(FILES ${paramedmemcompo_HEADERS_HXX} DESTINATION ${SALOME_INSTALL_HEADERS})