-# Copyright (C) 2007-2012 CEA/DEN, EDF R&D
+# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
${OMNIORB_INCLUDE_DIRS}
${MED3_INCLUDE_DIRS}
${HDF5_INCLUDE_DIRS}
+ ${PTHREAD_INCLUDE_DIRS}
${KERNEL_ROOT_DIR}/include/salome
- ${CMAKE_CURRENT_BINARY_DIR}/../../../idl
- ${CMAKE_CURRENT_SOURCE_DIR}/../../MEDLoader
- ${CMAKE_CURRENT_SOURCE_DIR}/../../MEDCoupling
- ${CMAKE_CURRENT_SOURCE_DIR}/../../INTERP_KERNEL
- ${CMAKE_CURRENT_SOURCE_DIR}/../../INTERP_KERNEL/Bases
- )
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/idl
+ ${CMAKE_SOURCE_DIR}/src/MEDCoupling
+ ${CMAKE_SOURCE_DIR}/src/INTERP_KERNEL/Bases
+ ${CMAKE_SOURCE_DIR}/src/INTERP_KERNEL
+ ${CMAKE_SOURCE_DIR}/src/MEDLoader
+)
SET(MEDOPFactoryEngine_SOURCES
MEDDataManager_i.cxx
MEDCalculator_i.cxx
MEDOPFactory_i.cxx
- )
+)
+SET(COMMON_LIBS
+ medloader
+ SalomeIDLMED
+ ${TOOLSDS}
+ ${SalomeHDFPersist}
+ ${SalomeContainer}
+ ${SalomeCommunication}
+ ${SalomeKernelHelpers}
+ ${SalomeLifeCycleCORBA})
+ ${SALOMELocalTrace}
+ ${SALOMEBasics}
+ ${SalomeGenericObj}
+ medcoupling
+ interpkernel
+ ${MED3_LIBS}
+ ${HDF5_LIBS}
+ ${OMNIORB_LIBS}
+ ${PLATFORM_LIBS}
+)
ADD_LIBRARY(MEDOPFactoryEngine SHARED ${MEDOPFactoryEngine_SOURCES})
-SET_TARGET_PROPERTIES(MEDOPFactoryEngine PROPERTIES COMPILE_FLAGS "${HDF5_DEFINITIONS} ${MED3_DEFINITIONS} ${OMNIORB_DEFINITIONS}")
-TARGET_LINK_LIBRARIES(MEDOPFactoryEngine medloader SalomeIDLMED ${TOOLSDS} ${SalomeHDFPersist} ${SalomeContainer} ${SalomeCommunication} ${SalomeKernelHelpers} ${SalomeLifeCycleCORBA})
+SET_TARGET_PROPERTIES(MEDOPFactoryEngine PROPERTIES COMPILE_FLAGS "${HDF5_DEFINITIONS} ${MED3_DEFINITIONS} ${PLATFORM_DEFINITIONS} ${OMNIORB_DEFINITIONS}")
+TARGET_LINK_LIBRARIES(MEDOPFactoryEngine SalomeIDLMED ${COMMON_LIBS})
+
INSTALL(TARGETS MEDOPFactoryEngine DESTINATION ${MED_salomelib_LIBS})
FILE(GLOB MEDOPFactoryEngine_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
INSTALL(FILES ${MEDOPFactoryEngine_HEADERS_HXX} DESTINATION ${MED_salomeinclude_HEADERS})
+
+INSTALL(FILES test_medop_components.py PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ DESTINATION ${MED_salomebin_BINS}/xmed)
\ No newline at end of file
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
+INCLUDE(${SALOME_MACROS_DIR}/InstallAndCompilePythonFile.cmake)
+
SET(PYFILES_TO_INSTALL
__init__.py
fieldproxy.py
properties.py
)
-INSTALL_AND_COMPILE_PYTHON_FILE("${PYFILES_TO_INSTALL}" ${MED_salomescript_PYTHON}/xmed)
+INSTALL_AND_COMPILE_PYTHON_FILE("${PYFILES_TO_INSTALL}" ${MED_salomepythondir}/xmed)
SET(TEST_SCRIPTS_XMED
tests/test_xmed_fieldOperations.py
tests/test_xmed_uiEventListener.py
tests/test_xmed_visualisation.py
)
+
+INSTALL(FILES ${TEST_SCRIPTS_XMED} PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ DESTINATION ${MED_salomebin_BINS}/xmed)
\ No newline at end of file