From e725601a74b151462f859b152979c95607ff0cb8 Mon Sep 17 00:00:00 2001 From: Ovidiu Mircescu Date: Mon, 4 Jan 2016 17:03:03 +0100 Subject: [PATCH] Export mpi libs in cmake targets. Signed-off-by: Anthony Geay --- src/ParaMEDCouplingCorba/CMakeLists.txt | 2 +- src/ParaMEDMEMComponent/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ParaMEDCouplingCorba/CMakeLists.txt b/src/ParaMEDCouplingCorba/CMakeLists.txt index d3c17138d..90d592951 100644 --- a/src/ParaMEDCouplingCorba/CMakeLists.txt +++ b/src/ParaMEDCouplingCorba/CMakeLists.txt @@ -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}) diff --git a/src/ParaMEDMEMComponent/CMakeLists.txt b/src/ParaMEDMEMComponent/CMakeLists.txt index f4580911d..3246ba467 100644 --- a/src/ParaMEDMEMComponent/CMakeLists.txt +++ b/src/ParaMEDMEMComponent/CMakeLists.txt @@ -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}) -- 2.39.2