ENDIF()
LIST(APPEND _${PROJECT_NAME}_exposed_targets
- medcouplingcorba medcouplingclient medcalculator MEDFactoryEngine)
+ medcouplingcorba medcouplingclient medcalculator MEDEngineCommon MEDFactoryEngine MEDEngine)
IF(SALOME_MED_ENABLE_PYTHON)
LIST(APPEND _${PROJECT_NAME}_exposed_targets medcalculatorspython)
ENDIF()
SET(MED_medcouplingclient medcouplingclient)
SET(MED_medcalculator medcalculator)
SET(MED_medcalculatorspython medcalculatorspython)
+SET(MED_MEDEngineCommon MEDEngineCommon)
SET(MED_MEDFactoryEngine MEDFactoryEngine)
+SET(MED_MEDEngine MEDEngine)
SET(MED_MEDCALCGUI_dialogs MEDCALCGUI_dialogs)
SET(MED_MEDCALCGUI MEDCALCGUI)
MEDPresentationDeflectionShape.cxx
)
-SET(MEDFactoryEngine_SOURCES
+SET(MEDEngineCommon_SOURCES
${COMMON_SOURCES}
+)
+
+SET(MEDFactoryEngine_SOURCES
MEDFactory_i.cxx
)
SET(MEDEngine_SOURCES
- ${COMMON_SOURCES}
MED.cxx
)
SET(COMMON_FLAGS "${COMMON_FLAGS} -DNOMINMAX")
ENDIF(WIN32)
+ADD_LIBRARY(MEDEngineCommon SHARED ${MEDEngineCommon_SOURCES})
+SET_TARGET_PROPERTIES(MEDEngineCommon PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
+TARGET_LINK_LIBRARIES(MEDEngineCommon ${COMMON_LIBS})
+
ADD_LIBRARY(MEDFactoryEngine SHARED ${MEDFactoryEngine_SOURCES})
SET_TARGET_PROPERTIES(MEDFactoryEngine PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
-TARGET_LINK_LIBRARIES(MEDFactoryEngine ${COMMON_LIBS})
+TARGET_LINK_LIBRARIES(MEDFactoryEngine ${COMMON_LIBS} MEDEngineCommon)
ADD_LIBRARY(MEDEngine SHARED ${MEDEngine_SOURCES})
SET_TARGET_PROPERTIES(MEDEngine PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
-TARGET_LINK_LIBRARIES(MEDEngine ${COMMON_LIBS})
+TARGET_LINK_LIBRARIES(MEDEngine ${COMMON_LIBS} MEDEngineCommon)
#INSTALL(TARGETS MEDFactoryEngine DESTINATION ${SALOME_INSTALL_LIBS})
+INSTALL(TARGETS MEDEngineCommon EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
INSTALL(TARGETS MEDFactoryEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
INSTALL(TARGETS MEDEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})