]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
CMake: minimal changes to compile under CMake without GUI.
authorbruneton <bruneton>
Tue, 2 Jul 2013 12:54:46 +0000 (12:54 +0000)
committerbruneton <bruneton>
Tue, 2 Jul 2013 12:54:46 +0000 (12:54 +0000)
CMakeLists.txt
idl/CMakeLists.txt
src/CMakeLists.txt
src/MEDGUI/CMakeLists.txt
src/MEDOP/gui/CMakeLists.txt
src/MEDOP/gui/dialogs/CMakeLists.txt

index 4ace05ba4c277a2df4e8ac4cd201a37aab113a2b..79e8c109e1e479e6acdf333c901d2ef6ad6566a7 100644 (file)
@@ -40,7 +40,9 @@ IF(KERNEL_ROOT_DIR)
   SET(SALOME_MACROS_DIR ${KERNEL_ROOT_DIR}/salome_adm/cmake_files)
   SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${SALOME_MACROS_DIR})
 
-  find_package(PLATFORM)
+  INCLUDE(SalomeSetupPlatform)
+  INCLUDE(SalomeMacros)
+  
   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)
@@ -51,24 +53,26 @@ IF(KERNEL_ROOT_DIR)
   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/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/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)
+  #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)
+  FILE(TO_CMAKE_PATH "$ENV{GUI_ROOT_DIR}" GUI_ROOT_DIR)
   IF(GUI_ROOT_DIR)
-  SET(MED_ENABLE_GUI ON)
-  INCLUDE(${GUI_ROOT_DIR}/adm_local/cmake_files/deprecated/FindCAS.cmake)
-  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)
+    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(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)
   ENDIF(GUI_ROOT_DIR)
 ELSE(KERNEL_ROOT_DIR)
   SET(SALOME_MACROS_DIR ${CMAKE_SOURCE_DIR}/adm_local_without_kernel/cmake_files)
@@ -84,10 +88,10 @@ ELSE(KERNEL_ROOT_DIR)
   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(${CMAKE_SOURCE_DIR}/adm_local_without_kernel/cmake_files/FindMEDFILE.cmake)
+  #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)
 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)
@@ -101,38 +105,25 @@ EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "import sys; t=sys.argv[-1].spli
   OUTPUT_VARIABLE XVERSION)
 
 SET(MED_salomebin_BINS bin/salome)
-
 SET(MED_salomelib_LIBS lib/salome)
-
 SET(MED_salomeidl_IDLS idl/salome)
 SET(KERNEL_salomeidl_IDLS ${MED_salomeidl_IDLS})
-
 SET(MED_salomeinclude_HEADERS include/salome)
-
 SET(MED_salomeres_DATA share/salome/resources/med)
-
 SET(MED_salomeres_SCRIPTS share/salome/resources/med)
-
 SET(MED_salomescript_SCRIPTS bin/salome)
-
 SET(MED_salomescript_DATA bin/salome)
-
 SET(MED_salomescript_PYTHON bin/salome)
-SET(KERNEL_salomescript_PYTHON ${MED_salomescript_PYTHON})
-
 SET(MED_appliskel_SCRIPTS bin/salome/appliskel)
-
 SET(MED_appliskel_PYTHON bin/salome/appliskel)
-
 SET(MED_pythondir lib/python${PYTHON_VERSION}/site-packages)
-
 SET(MED_salomepythondir ${MED_pythondir}/salome)
-SET(KERNEL_salomepythondir ${MED_salomepythondir})
-
 SET(MED_sharedpkgpython_PYTHON ${MED_salomepythondir}/shared_modules)
-
 SET(MED_admlocalcmake adm_local/cmake_files)
 
+SET(KERNEL_salomescript_PYTHON ${MED_salomescript_PYTHON})
+SET(KERNEL_salomepythondir ${MED_salomepythondir})
+
 IF(MED_ENABLE_KERNEL)
   ADD_SUBDIRECTORY(idl)
 ELSE(MED_ENABLE_KERNEL)
index 570125d7494d55a98348c3e521b73e7680eda693..d5a94a34d48c2ff66d0fd9fc78921a982c1dc12f 100644 (file)
@@ -27,7 +27,7 @@ INCLUDE_DIRECTORIES(
 )
 
 SET(SalomeIDLMED_IDLSOURCES
-  MED.idl
+  #MED.idl
   MEDCouplingCorbaServant.idl
   ParaMEDCouplingCorbaServant.idl
   MEDDataManager.idl
index 70b6e918c01ac3b8ac2d685a61a9978106699564..a883b9bbc397f6369dba55a9e0d78b857a755e32 100644 (file)
@@ -78,11 +78,11 @@ IF(MED_ENABLE_KERNEL)
     SET(COMMON_SUBDIRS ${COMMON_SUBDIRS} ParaMEDCouplingCorba ParaMEDMEMComponent)
   ENDIF(MPI_IS_OK)
   IF(MED_ENABLE_MED3)
-    SET(COMMON_SUBDIRS ${COMMON_SUBDIRS} MEDCalculator MEDOP)
+    SET(COMMON_SUBDIRS ${COMMON_SUBDIRS} MEDCalculator)
     SET(OLD_COMMON_SUBDIRS ${OLD_COMMON_SUBDIRS})
   ENDIF(MED_ENABLE_MED3)
   IF(MED_ENABLE_GUI)
-    SET(OLD_COMMON_SUBDIRS ${OLD_COMMON_SUBDIRS} MEDGUI)
+    SET(OLD_COMMON_SUBDIRS ${OLD_COMMON_SUBDIRS} MEDOP MEDGUI)
   ENDIF(MED_ENABLE_GUI)
 ENDIF(MED_ENABLE_KERNEL)
 
index 93571d22da72f6ecde678fdbc64c00239a248d5a..b3d51fa6dc6aad2c93a18e35597186618bace5f7 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(${GUI_ROOT_DIR}/adm_local/cmake_files/UseQt4Ext.cmake)
 
 SET(MEDGUI_SOURCES
   MEDGUIFileContentDial.cxx
index 2797efd63706704fd99bd5d9aa07c026de8d40d9..71fe051048310202cf796df4ad7dcd2999b927ff 100644 (file)
@@ -19,7 +19,7 @@
 
 ADD_SUBDIRECTORY(dialogs)
 
-INCLUDE(${GUI_ROOT_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
+INCLUDE(${GUI_ROOT_DIR}/adm_local/cmake_files/UseQt4Ext.cmake)
 
 SET(MEDOPGUI_SOURCES
   MEDOPFactoryClient.cxx
index a680315ea7274a287138cebf957800dc8c6bccf8..8d0a38c017c9c0f1d2ebbdcbd67ba074f940e5bd 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(${GUI_ROOT_DIR}/adm_local/cmake_files/UseQt4Ext.cmake)
 
 MACRO (QT4_WRAP_UI_XX outfiles )
   QT4_EXTRACT_OPTIONS(ui_files ui_options ${ARGN})