From: bruneton Date: Wed, 10 Jul 2013 09:45:20 +0000 (+0000) Subject: CMake: adapted detection and some target names to fit recent changes in MED X-Git-Tag: V7_3_0a1~41 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4100fe273d0548d591541c29de124ecf87495956;p=modules%2Fparavis.git CMake: adapted detection and some target names to fit recent changes in MED --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 570b15ca..068f6388 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,10 +58,16 @@ FIND_PACKAGE(SalomeDoxygen REQUIRED) # 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) @@ -95,8 +101,9 @@ SET(BUILD_PLUGINS 1) #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 (??) ...") diff --git a/src/ENGINE/CMakeLists.txt b/src/ENGINE/CMakeLists.txt index 7bb220cd..053a3a16 100644 --- a/src/ENGINE/CMakeLists.txt +++ b/src/ENGINE/CMakeLists.txt @@ -33,7 +33,9 @@ ENDFOREACH(f ${var}) 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) diff --git a/src/PVGUI/CMakeLists.txt b/src/PVGUI/CMakeLists.txt index 34881a10..038c09f0 100644 --- a/src/PVGUI/CMakeLists.txt +++ b/src/PVGUI/CMakeLists.txt @@ -186,9 +186,11 @@ TARGET_LINK_LIBRARIES(PARAVIS ${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} diff --git a/src/Plugins/ParaMEDCorba/CMakeLists.txt b/src/Plugins/ParaMEDCorba/CMakeLists.txt index 45329968..7ab3d5d8 100644 --- a/src/Plugins/ParaMEDCorba/CMakeLists.txt +++ b/src/Plugins/ParaMEDCorba/CMakeLists.txt @@ -61,8 +61,8 @@ PROJECT( ParaMEDCorba ) vtkClientServer pqCore ${OMNIORB_LIBRARIES} - ${SalomeIDLMED} - ${SalomeIDLKernel} + ${MED_SalomeIDLMED} + ${KERNEL_SalomeIDLKernel} ${QT_LIBS} ) TARGET_LINK_LIBRARIES(ParaMEDCorbaPlugin