# Specific to ParaVis:
FIND_PACKAGE(SalomeParaView)
+IF(TARGET vtkTools)
+ message("bli !!")
+endif()
# GUI has to be loaded AFTER ParaView: the ParaView config doesn't mix
-# well with the VTK one (GUI loads VTK):
+# well with the VTK one (and GUI loads VTK):
FIND_PACKAGE(SalomeGUI REQUIRED)
+IF(TARGET vtkTools)
+ message("bli !!")
+endif()
# From GUI:
FIND_PACKAGE(SalomeCAS REQUIRED)
#SET(WITH_VISU 1)
#ENDIF(EXISTS ${VISU_ROOT_DIR}/adm_local/cmake_files/FindVISU.cmake)
-SET(MED_ROOT_DIR $ENV{MED_ROOT_DIR} CACHE PATH "MED_ROOT_DIR")
-INCLUDE(${MED_ROOT_DIR}/adm_local/cmake_files/FindMED.cmake)
+SET(MED_ROOT_DIR "$ENV{MED_ROOT_DIR}" CACHE PATH "Path to the MED Salome module")
+LIST(APPEND CMAKE_MODULE_PATH "${MED_ROOT_DIR}/adm_local/cmake_files")
+FIND_PACKAGE(SalomeMED REQUIRED)
# TODO: the below requires ParaView in the PYTHONPATH ... not so nice:
MESSAGE(STATUS "Generating wrapped class list (??) ...")
SET_TARGET_PROPERTIES(PARAVISEngine PROPERTIES COMPILE_FLAGS "${flags}")
SET_TARGET_PROPERTIES(PARAVISEngine PROPERTIES VERSION ${VERSION_INFO} SOVERSION ${SOVERSION_INFO})
-TARGET_LINK_LIBRARIES(PARAVISEngine ${PLATFORM_LIBADD} ${PLATFORM_LDFLAGS} ${KERNEL_LDFLAGS} ${SalomeIDLKernel} ${SalomeNS} ${SalomeContainer} ${SALOMELocalTrace} ${OMNIORB_LIBRARIES} SalomeIDLPARAVIS)
+TARGET_LINK_LIBRARIES(PARAVISEngine ${PLATFORM_LIBADD} ${PLATFORM_LDFLAGS} ${KERNEL_LDFLAGS}
+ ${KERNEL_SalomeIDLKernel} ${KERNEL_SalomeNS} ${KERNEL_SalomeContainer} ${KERNEL_SALOMELocalTrace}
+ ${OMNIORB_LIBRARIES} SalomeIDLPARAVIS)
INSTALL(TARGETS PARAVISEngine DESTINATION lib/salome)
INSTALL(FILES PARAVIS_Engine_i.hh DESTINATION include/salome)
${CAS_KERNEL}
${VTK_LIBS}
${PYTHON_LIBS}
- ${KERNEL_LDFLAGS} ${SalomeDS} ${SALOMELocalTrace} ${SalomeIDLKernel} ${SalomeNS} ${SalomeLifeCycleCORBA} ${SalomeContainer} ${TOOLSDS}
- ${GUI_LDFLAGS} ${SalomeApp} ${LightApp} ${CAM} ${qtx} ${suit} ${Event} ${PyInterp} ${SalomeObject} ${vtkTools}
- ${MED_LDFLAGS} ${SalomeIDLMED}
+ ${KERNEL_LDFLAGS} ${KERNEL_SalomeDS} ${KERNEL_SALOMELocalTrace} ${KERNEL_SalomeIDLKernel}
+ ${KERNEL_SalomeNS} ${KERNEL_SalomeLifeCycleCORBA} ${KERNEL_SalomeContainer} ${KERNEL_TOOLSDS}
+ ${GUI_LDFLAGS} ${GUI_SalomeApp} ${GUI_LightApp} ${GUI_CAM} ${GUI_qtx} ${GUI_suit} ${GUI_Event} ${GUI_PyInterp}
+ ${GUI_SalomeObject} ${GUI_vtkTools}
+ ${MED_LDFLAGS} ${MED_SalomeIDLMED}
${VISU_LDFLAGS}
${VISU_PARAVIS_LIBS}
${PARAVIEW_LIBS}
vtkClientServer
pqCore
${OMNIORB_LIBRARIES}
- ${SalomeIDLMED}
- ${SalomeIDLKernel}
+ ${MED_SalomeIDLMED}
+ ${KERNEL_SalomeIDLKernel}
${QT_LIBS}
)
TARGET_LINK_LIBRARIES(ParaMEDCorbaPlugin