From: Ovidiu Mircescu Date: Mon, 4 Jan 2016 16:03:03 +0000 (+0100) Subject: Export mpi libs in cmake targets. X-Git-Tag: V7_8_0a1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e725601a74b151462f859b152979c95607ff0cb8;p=modules%2Fmed.git Export mpi libs in cmake targets. Signed-off-by: Anthony Geay --- 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})