]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
CMake: minimal set of changes so that MED compiles with:
authorbruneton <bruneton>
Wed, 3 Jul 2013 12:37:49 +0000 (12:37 +0000)
committerbruneton <bruneton>
Wed, 3 Jul 2013 12:37:49 +0000 (12:37 +0000)
   - either the old or the new medfile prerequisite
   - with the CMake built KERNEL and GUI.

14 files changed:
CMakeLists.txt
idl/CMakeLists.txt
src/MEDCalculator/CMakeLists.txt
src/MEDCouplingCorba/CMakeLists.txt
src/MEDCouplingCorba/Client/CMakeLists.txt
src/MEDCouplingCorba/Test/CMakeLists.txt
src/MEDCouplingCorba_Swig/CMakeLists.txt
src/MEDCouplingCorba_Swig/Client/CMakeLists.txt
src/MEDGUI/CMakeLists.txt
src/MEDOP/cmp/CMakeLists.txt
src/MEDOP/gui/CMakeLists.txt
src/MEDOP/gui/dialogs/CMakeLists.txt
src/ParaMEDCouplingCorba/CMakeLists.txt
src/ParaMEDMEMComponent/CMakeLists.txt

index 79e8c109e1e479e6acdf333c901d2ef6ad6566a7..68caca48179e7c047d1485bdfb01bf537f0f8620 100644 (file)
@@ -17,7 +17,7 @@
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-CMAKE_MINIMUM_REQUIRED(VERSION 2.4.7 FATAL_ERROR)
+CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8 FATAL_ERROR)
 
 IF(COMMAND cmake_policy)
   cmake_policy(SET CMP0003 NEW)
@@ -31,6 +31,7 @@ SET(WITH_MEDMEMGUI "0")
 #Defining all options first
 option(SALOME_USE_MPI "Use MPI containers" OFF)
 
+
 SET(KERNEL_ROOT_DIR $ENV{KERNEL_ROOT_DIR})
 IF(KERNEL_ROOT_DIR)
   FILE(TO_CMAKE_PATH $ENV{KERNEL_ROOT_DIR} KERNEL_ROOT_DIR)
@@ -38,60 +39,97 @@ IF(KERNEL_ROOT_DIR)
   
   # directories for packages detection
   SET(SALOME_MACROS_DIR ${KERNEL_ROOT_DIR}/salome_adm/cmake_files)
-  SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${SALOME_MACROS_DIR})
+  LIST(APPEND CMAKE_MODULE_PATH "${SALOME_MACROS_DIR}")
 
-  INCLUDE(SalomeSetupPlatform)
   INCLUDE(SalomeMacros)
+  INCLUDE(SalomeSetupPlatform)
+    
+  FIND_PACKAGE(SalomeKERNEL)
+  
+  # Try first to find medfile version using the new CMake first 
+  FIND_PACKAGE(SalomeMedfile QUIET)
+  IF(medfile_FOUND)
+     MESSAGE(STATUS "Found Medfile in config mode (new CMake version of medfile)")
+     # Backward compat:
+     SET(MED_ENABLE_MED3 ON)
+     SET(MED3_INCLUDE_DIRS "${MEDFILE_INCLUDE_DIRS}")
+     SET(MED3_LIBS_C_ONLY "${MEDFILE_C_LIBRARIES}")
+  ELSE()
+    # if not found, revert to the old logic:
+    FIND_PACKAGE(MEDFILE REQUIRED)
+    SET(MED_ENABLE_MED3 ON)
+  ENDIF()
+  
+  FIND_PACKAGE(SalomePThread)
+  FIND_PACKAGE(SalomePython)
+  SET(PYTHON_LIBS ${PYTHON_LIBRARIES})
+  
+  FIND_PACKAGE(SalomeOmniORB)
+  SET(OMNIORB_LIBS ${OMNIORB_LIBRARIES})
+  
+  IF(SALOME_USE_MPI)
+    FIND_PACKAGE(SalomeMPI)
+    SET(MPI_IS_OK 1)
+  ENDIF()
+  
+  FIND_PACKAGE(SalomeHDF5)  
+  FIND_PACKAGE(SalomeBoost)
+  
+  FIND_PACKAGE(SalomeLibXml2)
+  # Backward compat:
+  SET(LIBXML_INCLUDE_DIRS "${LIBXML2_INCLUDE_DIR}")
+  SET(LIBXML_LIBS "${LIBXML2_LIBRARIES}")
+  
+  FIND_PACKAGE(SalomeSWIG)
+  SET(SWIG_STATUS TRUE)
+  
+  FIND_PACKAGE(SalomeCppUnit)
+  SET(CPPUNIT_IS_OK ON)
+  SET(CPPUNIT_LIBS "${CPPUNIT_LIBRARIES}")
+  
+  FIND_PACKAGE(SalomeDoxygen)
+  FIND_PACKAGE(SalomeSphinx)
   
-  INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/deprecated/FindPYTHON.cmake)
-  if(SALOME_USE_MPI)
-    INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/deprecated/FindMPI.cmake)
-  endif(SALOME_USE_MPI)
-  INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/deprecated/FindOMNIORB.cmake)
-  INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/deprecated/FindPTHREADS.cmake)
-  INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/deprecated/FindHDF5.cmake)
-  INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/deprecated/FindBOOST.cmake)
-  INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/deprecated/FindLIBXML2.cmake)
-  INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/deprecated/FindSWIG.cmake)
-  INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindCppUnit.cmake)
-  INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/deprecated/FindDOXYGEN.cmake)
-  INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindSphinx.cmake)
-  INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindSalomeLibBatch.cmake)
-  INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/deprecated/FindKERNEL.cmake)
-  #INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindMEDFILE.cmake)
 
+    
   SET(GUI_ROOT_DIR $ENV{GUI_ROOT_DIR})
   FILE(TO_CMAKE_PATH "$ENV{GUI_ROOT_DIR}" GUI_ROOT_DIR)
   IF(GUI_ROOT_DIR)
     LIST(APPEND CMAKE_MODULE_PATH "${GUI_ROOT_DIR}/adm_local/cmake_files")
     SET(MED_ENABLE_GUI ON)
-    #INCLUDE(${GUI_ROOT_DIR}/adm_local/cmake_files/FindCAS.cmake)
+    
+    FIND_PACKAGE(SalomeGUI)
+    
     FIND_PACKAGE(SalomeCAS)
-    INCLUDE(${GUI_ROOT_DIR}/adm_local/cmake_files/deprecated/FindQT4.cmake)
-    INCLUDE(${GUI_ROOT_DIR}/adm_local/cmake_files/deprecated/FindOPENGL.cmake)
-    #INCLUDE(${GUI_ROOT_DIR}/adm_local/cmake_files/FindSalomeVTK.cmake)
-    INCLUDE(${GUI_ROOT_DIR}/adm_local/cmake_files/deprecated/FindQWT.cmake)
-    INCLUDE(${GUI_ROOT_DIR}/adm_local/cmake_files/deprecated/FindSIPPYQT.cmake)
-    INCLUDE(${GUI_ROOT_DIR}/adm_local/cmake_files/deprecated/FindGUI.cmake)
+    FIND_PACKAGE(SalomeOpenGL)
+    FIND_PACKAGE(SalomeQt4)
+    
+    FIND_PACKAGE(SalomeQwt)
+    FIND_PACKAGE(SalomePyQt4)    
   ENDIF(GUI_ROOT_DIR)
 ELSE(KERNEL_ROOT_DIR)
   SET(SALOME_MACROS_DIR ${CMAKE_SOURCE_DIR}/adm_local_without_kernel/cmake_files)
+  LIST(APPEND CMAKE_MODULE_PATH "${SALOME_MACROS_DIR}")
+  
+  # TODO: the macros below should be loaded with a FIND_PACKAGE(), and should be sync'd with
+  # what has been done in KERNEL + GUI:
   
-  INCLUDE(${CMAKE_SOURCE_DIR}/adm_local_without_kernel/cmake_files/FindPLATFORM.cmake)
+  INCLUDE(FindPLATFORM)
   if(SALOME_USE_MPI)
-    INCLUDE(${CMAKE_SOURCE_DIR}/adm_local_without_kernel/cmake_files/FindMPI.cmake)
+    INCLUDE(FindMPI)
   endif(SALOME_USE_MPI)
-  INCLUDE(${CMAKE_SOURCE_DIR}/adm_local_without_kernel/cmake_files/FindBOOST.cmake)
-  INCLUDE(${CMAKE_SOURCE_DIR}/adm_local_without_kernel/cmake_files/FindCPPUNIT.cmake)
-  INCLUDE(${CMAKE_SOURCE_DIR}/adm_local_without_kernel/cmake_files/FindHDF5.cmake)
-  INCLUDE(${CMAKE_SOURCE_DIR}/adm_local_without_kernel/cmake_files/FindPYTHON.cmake)
-  INCLUDE(${CMAKE_SOURCE_DIR}/adm_local_without_kernel/cmake_files/FindLIBXML2.cmake)
-  INCLUDE(${CMAKE_SOURCE_DIR}/adm_local_without_kernel/cmake_files/FindPTHREADS.cmake)
-  INCLUDE(${CMAKE_SOURCE_DIR}/adm_local_without_kernel/cmake_files/FindSWIG.cmake)
+  INCLUDE(FindMEDFILE)
+  INCLUDE(FindBOOST)
+  INCLUDE(FindCPPUNIT)
+  INCLUDE(FindHDF5)
+  INCLUDE(FindPYTHON)
+  INCLUDE(FindLIBXML2)
+  INCLUDE(FindPTHREADS)
+  INCLUDE(FindSWIG)
   #INCLUDE(${CMAKE_SOURCE_DIR}/adm_local_without_kernel/cmake_files/FindMEDFILE.cmake)
-
 ENDIF(KERNEL_ROOT_DIR)
-INCLUDE(${CMAKE_SOURCE_DIR}/adm_local_without_kernel/cmake_files/FindMEDFILE.cmake)
+
+# TODO: write those in the new format, and load them via FIND_PACKAGE():
 INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/FindPARMETIS.cmake)
 INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/FindMETIS.cmake)
 INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/FindSCOTCH.cmake)
@@ -104,6 +142,7 @@ ENDIF(WIN32)
 EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "import sys; t=sys.argv[-1].split(\".\") ; t[:]=(int(elt) for elt in t) ; sys.stdout.write(\"0x%02x%02x%02x\"%tuple(t))" ${VERSION}
   OUTPUT_VARIABLE XVERSION)
 
+# TODO: adjust to the global SALOME install dirs exposed from KERNEL:
 SET(MED_salomebin_BINS bin/salome)
 SET(MED_salomelib_LIBS lib/salome)
 SET(MED_salomeidl_IDLS idl/salome)
index d5a94a34d48c2ff66d0fd9fc78921a982c1dc12f..3e328f4f1c045c092f9afdfea188a478d0b06c59 100644 (file)
 #
 # Author : Anthony Geay (CEA/DEN)
 
-INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/deprecated/UseOMNIORB.cmake)
+INCLUDE(UseOmniORB)
 
 INCLUDE_DIRECTORIES(
-  ${OMNIORB_INCLUDE_DIRS}
+  ${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIRS}
   ${KERNEL_ROOT_DIR}/include/salome
   ${CMAKE_CURRENT_BINARY_DIR}
 )
@@ -57,7 +57,7 @@ ELSE(WINDOWS)
 ENDIF(WINDOWS
 )
 OMNIORB_ADD_MODULE(SalomeIDLMED "${SalomeIDLMED_IDLSOURCES}" "${IDL_INCLUDE_DIRS}" ${TYPE})
-TARGET_LINK_LIBRARIES(SalomeIDLMED ${CORBA_LIBS} ${KERNEL_LDFLAGS} ${SalomeIDLKernel})
+TARGET_LINK_LIBRARIES(SalomeIDLMED ${CORBA_LIBS} ${KERNEL_LDFLAGS} ${KERNEL_SalomeIDLKernel})
 SET_TARGET_PROPERTIES(SalomeIDLMED PROPERTIES COMPILE_FLAGS "${OMNIORB_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
 
 OMNIORB_ADD_MODULE(SalomeIDLMEDTests "${SalomeIDLMEDTests_IDLSOURCES}" "${IDL_INCLUDE_DIRS}" ${TYPE})
index 0cb6372d12fc996c19e65d6566dbc78770d9c4aa..68400423781c38672e3ef49c979b5cd387122be7 100644 (file)
@@ -27,7 +27,7 @@ ENDIF(CPPUNIT_IS_OK)
 INCLUDE_DIRECTORIES(
   ${MED3_INCLUDE_DIRS}
   ${HDF5_INCLUDE_DIRS}
-  ${OMNIORB_INCLUDE_DIRS}
+  ${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIRS}
   ${PTHREAD_INCLUDE_DIRS}
   ${KERNEL_ROOT_DIR}/include/salome
   ${CMAKE_CURRENT_BINARY_DIR}/../../idl
@@ -53,7 +53,9 @@ SET(medcalculator_SOURCES
 
 ADD_LIBRARY(medcalculator SHARED ${medcalculator_SOURCES})
 SET_TARGET_PROPERTIES(medcalculator PROPERTIES COMPILE_FLAGS "${HDF5_DEFINITIONS} ${MED3_DEFINITIONS} ${OMNIORB_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
-TARGET_LINK_LIBRARIES(medcalculator medloader medcouplingcorba ${KERNEL_LDFLAGS} ${SALOMELocalTrace} ${SalomeNS} ${OpUtil} ${OMNIORB_LIBS} ${PLATFORM_LIBS})
+TARGET_LINK_LIBRARIES(medcalculator medloader medcouplingcorba ${KERNEL_LDFLAGS} 
+  ${KERNEL_SALOMELocalTrace} ${KERNEL_SalomeNS} ${KERNEL_OpUtil} 
+  ${OMNIORB_LIBS} ${PLATFORM_LIBS})
 INSTALL(TARGETS medcalculator DESTINATION ${MED_salomelib_LIBS})
 
 FILE(GLOB medcalculator_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
index dbaa5f70086685da0dea7e26d19b32c19ff39afe..bbe017c60569a1501e737de92f827a43486a0222 100644 (file)
@@ -25,7 +25,7 @@ IF (CPPUNIT_IS_OK)
 ENDIF (CPPUNIT_IS_OK)
 
 INCLUDE_DIRECTORIES(
-  ${OMNIORB_INCLUDE_DIRS}
+  ${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIRS}
   ${KERNEL_ROOT_DIR}/include/salome
   ${CMAKE_CURRENT_BINARY_DIR}/../../idl
   ${CMAKE_CURRENT_SOURCE_DIR}/../MEDCoupling
index 38b4590a14c6c4b21537c70e46d097b5208a419d..a7aaef2bf6be7f186ce371dc1af946a03a3ef9e9 100644 (file)
@@ -19,7 +19,7 @@
 # Author : Anthony Geay (CEA/DEN)
 
 INCLUDE_DIRECTORIES(
-  ${OMNIORB_INCLUDE_DIRS}
+  ${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIRS}
   ${KERNEL_ROOT_DIR}/include/salome
   ${CMAKE_CURRENT_BINARY_DIR}/../../../idl
   ${CMAKE_CURRENT_SOURCE_DIR}/../../MEDCoupling
index 7c2e0b91bf2b519acb911f4c567efee58af18100..14daa962ea5ad3ff6de0cb6ccd67ac555bd444c5 100644 (file)
@@ -19,7 +19,7 @@
 # Author : Anthony Geay (CEA/DEN)
 
 INCLUDE_DIRECTORIES(
-  ${OMNIORB_INCLUDE_DIRS}
+  ${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIRS}
   ${PTHREAD_INCLUDE_DIRS}
   ${CPPUNIT_INCLUDE_DIRS}
   ${KERNEL_ROOT_DIR}/include/salome
index 2aa8561b81bfd8ecef9312939a59f9e62e1b48ff..7ced5f976e75bd7a14be9425a7ca91adce44ee30 100644 (file)
@@ -35,7 +35,7 @@ SET(MEDCouplingCorba_SWIG_DPYS_FILES
 
 INCLUDE_DIRECTORIES(
   ${PYTHON_INCLUDE_DIRS}
-  ${OMNIORB_INCLUDE_DIRS}
+  ${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIRS}
   ${KERNEL_ROOT_DIR}/include/salome
   ${CMAKE_CURRENT_BINARY_DIR}/../../idl
   ${CMAKE_CURRENT_SOURCE_DIR}
index d6634d008130362e06100f7d888e867965291dd9..a8e8fde576a3d8241e687136496c56d564cb8efb 100644 (file)
@@ -30,7 +30,7 @@ ENDIF(NUMPY_STATUS)
 
 INCLUDE_DIRECTORIES(
   ${PYTHON_INCLUDE_DIRS}
-  ${OMNIORB_INCLUDE_DIRS}
+  ${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIRS}
   ${KERNEL_ROOT_DIR}/include/salome
   ${CMAKE_CURRENT_BINARY_DIR}/../../../idl
   ${CMAKE_CURRENT_SOURCE_DIR}
index b3d51fa6dc6aad2c93a18e35597186618bace5f7..6910694f5090671fef5f870ab5c9fca0da5ac322 100644 (file)
@@ -17,7 +17,8 @@
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-INCLUDE(${GUI_ROOT_DIR}/adm_local/cmake_files/UseQt4Ext.cmake)
+INCLUDE(${QT_USE_FILE})
+INCLUDE(UseQt4Ext)
 
 SET(MEDGUI_SOURCES
   MEDGUIFileContentDial.cxx
@@ -35,7 +36,7 @@ QT4_WRAP_UI(MEDGUI_FORMS_HEADERS ${MEDGUI_FORMS})
 #QT4_ADD_RESOURCES(MEDGUI_RESOURCES_RCC ${MEDGUI_RESOURCES})
 
 INCLUDE_DIRECTORIES(
-  ${OMNIORB_INCLUDE_DIRS}
+  ${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIRS}
   ${CAS_INCLUDE_DIRS}
   ${BOOST_INCLUDE_DIRS}
   ${PTHREAD_INCLUDE_DIRS}
index e4582f2e209a94336b32741f00c5644a1d41c7e3..d7348b0a579a0381f82b3566a858ba48d2bae34f 100644 (file)
@@ -18,7 +18,7 @@
 #
 
 INCLUDE_DIRECTORIES(
-  ${OMNIORB_INCLUDE_DIRS}
+  ${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIRS}
   ${MED3_INCLUDE_DIRS}
   ${HDF5_INCLUDE_DIRS}
   ${PTHREAD_INCLUDE_DIRS}
index 71fe051048310202cf796df4ad7dcd2999b927ff..7ad04d92b315512efb0b5d9f816b76ea877c865f 100644 (file)
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
+INCLUDE(${QT_USE_FILE})
+SET(QT_LIBS "${QT_LIBRARIES}")
+INCLUDE(UseQt4Ext)
+
 ADD_SUBDIRECTORY(dialogs)
 
-INCLUDE(${GUI_ROOT_DIR}/adm_local/cmake_files/UseQt4Ext.cmake)
 
 SET(MEDOPGUI_SOURCES
   MEDOPFactoryClient.cxx
@@ -37,7 +40,7 @@ SET(MEDOPGUI_HEADERS MEDOPModule.hxx MEDEventListener_i.hxx WorkspaceController.
 QT4_WRAP_CPP(MEDOPGUI_HEADERS_MOC ${MEDOPGUI_HEADERS})
 
 INCLUDE_DIRECTORIES(
-  ${OMNIORB_INCLUDE_DIRS}
+  ${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIRS}
   ${CAS_INCLUDE_DIRS}
   ${BOOST_INCLUDE_DIRS}
   ${PTHREAD_INCLUDE_DIRS}
@@ -61,7 +64,7 @@ SET(COMMON_DEFINITIONS "${MED3_DEFINITIONS} ${XDR_DEFINITIONS} ${CAS_DEFINITIONS
 SET(COMMON_FLAGS
   ${CAS_KERNEL}
   ${QT_MT_LIBS}
-  ${OMNIORB_LIBS}
+  ${OMNIORB_LIBRARIES}
   ${PLATFORM_LIBS}
   ${BOOST_LIBS}
   SalomeIDLMED
index 8d0a38c017c9c0f1d2ebbdcbd67ba074f940e5bd..2dda0a4e56f4115d3b1d464c9e167762e076a895 100644 (file)
@@ -17,7 +17,7 @@
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-INCLUDE(${GUI_ROOT_DIR}/adm_local/cmake_files/UseQt4Ext.cmake)
+INCLUDE(UseQt4Ext)
 
 MACRO (QT4_WRAP_UI_XX outfiles )
   QT4_EXTRACT_OPTIONS(ui_files ui_options ${ARGN})
@@ -52,7 +52,7 @@ SET(MEDOPGUI_dialogs_FILES
 QT4_WRAP_CPP(MEDOPGUI_dialogs_HEADERS_MOC ${MEDOPGUI_dialogs_FILES})
 
 INCLUDE_DIRECTORIES(
-  ${OMNIORB_INCLUDE_DIRS}
+  ${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIRS}
   ${CAS_INCLUDE_DIRS}
   ${BOOST_INCLUDE_DIRS}
   ${PTHREAD_INCLUDE_DIRS}
@@ -60,6 +60,7 @@ INCLUDE_DIRECTORIES(
   ${KERNEL_ROOT_DIR}/include/salome
   ${GUI_ROOT_DIR}/include/salome
   ${CMAKE_CURRENT_SOURCE_DIR}/..
+  ${QT4_INCLUDE_DIRECTORY}
 )
 
 SET(MEDOPGUI_dialogs_SOURCES
@@ -72,7 +73,9 @@ SET(MEDOPGUI_dialogs_SOURCES
 
 ADD_LIBRARY(MEDOPGUI_dialogs SHARED ${MEDOPGUI_dialogs_SOURCES} ${MEDOPGUI_dialogs_HEADERS_MOC} ${MEDOPGUI_dialogs_FORMS_HEADERS})
 SET_TARGET_PROPERTIES(MEDOPGUI_dialogs PROPERTIES COMPILE_FLAGS "${CAS_DEFINITIONS} ${BOOST_DEFINITIONS} ${PLATFORM_DEFINITIONS} ${OMNIORB_DEFINITIONS}")
-TARGET_LINK_LIBRARIES(MEDOPGUI_dialogs ${CAS_KERNEL} ${QT_LIBS} ${SalomeIDLKernel} ${SalomeGuiHelpers} ${OMNIORB_LIBS} ${qtx} ${suit} ${PLATFORM_LIBS} ${SalomeLifeCycleCORBA} ${SalomeKernelHelpers} ${SalomeGuiHelpers})
+TARGET_LINK_LIBRARIES(MEDOPGUI_dialogs ${CAS_KERNEL} ${QT_LIBS} ${KERNEL_SalomeIDLKernel} 
+    ${GUI_SalomeGuiHelpers} ${OMNIORB_LIBS} ${GUI_qtx} ${GUI_suit} ${PLATFORM_LIBS} 
+    ${KERNEL_SalomeLifeCycleCORBA} ${KERNEL_SalomeKernelHelpers} ${GUI_SalomeGuiHelpers})
 INSTALL(TARGETS MEDOPGUI_dialogs DESTINATION ${MED_salomelib_LIBS})
 
 #
index 9023ea68a1f51853d08d366d06b03452bb31b853..3e689d0618c60163afa754a47791fe64cfed3044 100644 (file)
@@ -18,7 +18,7 @@
 #
 
 INCLUDE_DIRECTORIES(
-  ${OMNIORB_INCLUDE_DIRS}
+  ${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIRS}
   ${MPI_INCLUDE_DIRS}
   ${KERNEL_ROOT_DIR}/include/salome
   ${CMAKE_CURRENT_BINARY_DIR}/../../idl
index 5031f436adf303c4e2446ccb4b77e09f73e61b9e..ce7f5f1ded97c17f814001c34d52e1b1669e6cc5 100644 (file)
@@ -18,7 +18,7 @@
 #
 
 INCLUDE_DIRECTORIES(
-  ${OMNIORB_INCLUDE_DIRS}
+  ${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIRS}
   ${MPI_INCLUDE_DIRS}
   ${KERNEL_ROOT_DIR}/include/salome
   ${CMAKE_CURRENT_BINARY_DIR}/../../idl