]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
Now some libraries of MEDOP can be build without GUI
authormpa <mpa@opencascade.com>
Wed, 12 Mar 2014 09:12:26 +0000 (13:12 +0400)
committermpa <mpa@opencascade.com>
Wed, 12 Mar 2014 09:12:26 +0000 (13:12 +0400)
CMakeLists.txt
src/CMakeLists.txt
src/MEDOP/CMakeLists.txt
src/MEDOP/cmp/CMakeLists.txt

index 8c56084114676412f4a7bf49f6e5993705ad3419..7f12b2bb580fd43579988d7e51eaae2ebe96e17e 100644 (file)
@@ -336,7 +336,7 @@ IF(NOT SALOME_MED_STANDALONE)
   LIST(APPEND _${PROJECT_NAME}_exposed_targets 
     SalomeIDLMED SalomeIDLMEDTests medcouplingcorba medcouplingclient)
   IF(NOT SALOME_MED_MICROMED)
-    LIST(APPEND _${PROJECT_NAME}_exposed_targets medcalculator)
+    LIST(APPEND _${PROJECT_NAME}_exposed_targets medcalculator MEDOPFactoryEngine)
     IF(SALOME_MED_ENABLE_PYTHON)
       LIST(APPEND _${PROJECT_NAME}_exposed_targets medcalculatorspython)
     ENDIF()
@@ -345,10 +345,8 @@ ENDIF()
 
 IF(SALOME_BUILD_GUI)
   IF(NOT SALOME_MED_MICROMED)
-    IF(SALOME_MED_ENABLE_PYTHON)
-      LIST(APPEND _${PROJECT_NAME}_exposed_targets 
-        MEDOPFactoryEngine MEDOPGUI_dialogs MEDOPGUI)
-    ENDIF()
+    LIST(APPEND _${PROJECT_NAME}_exposed_targets 
+       MEDOPGUI_dialogs MEDOPGUI)
   ENDIF()
 ENDIF()
 
index 6ec53358d4c2fe3945d4825d313de42627ee7dc8..d261cdb273d47fbeb0962820b6db8fa546e4213b 100644 (file)
@@ -63,6 +63,7 @@ IF(NOT SALOME_MED_STANDALONE)
   ADD_SUBDIRECTORY(MEDCouplingCorba)
   IF(NOT SALOME_MED_MICROMED)
     ADD_SUBDIRECTORY(MEDCalculator)
+    ADD_SUBDIRECTORY(MEDOP)
   ENDIF(NOT SALOME_MED_MICROMED)
   IF(SALOME_MED_ENABLE_PYTHON)
     ADD_SUBDIRECTORY(MEDCouplingCorba_Swig)
@@ -73,7 +74,6 @@ IF(SALOME_BUILD_GUI)
   IF(NOT SALOME_MED_MICROMED)
     IF(SALOME_MED_ENABLE_PYTHON)
       #ADD_SUBDIRECTORY(MEDGUI)
-      ADD_SUBDIRECTORY(MEDOP)
     ENDIF(SALOME_MED_ENABLE_PYTHON)
   ENDIF(NOT SALOME_MED_MICROMED)
 ENDIF(SALOME_BUILD_GUI)
index c41e2b2fbe3e205fbcfca15acc129a6ad670c4a9..8411c6ae66872e5052f0e7f2b194bc1fb83e8c73 100644 (file)
 #
 
 ADD_SUBDIRECTORY(cmp)
-ADD_SUBDIRECTORY(tui)
 ADD_SUBDIRECTORY(res)
-ADD_SUBDIRECTORY(gui)
-ADD_SUBDIRECTORY(exe)
+
+IF(SALOME_BUILD_GUI)
+  ADD_SUBDIRECTORY(gui)
+ENDIF()
+
+IF(SALOME_MED_ENABLE_PYTHON)
+  ADD_SUBDIRECTORY(tui)
+  ADD_SUBDIRECTORY(exe)
+ENDIF()
+
 IF(SALOME_BUILD_DOC)
   ADD_SUBDIRECTORY(doc)
 ENDIF(SALOME_BUILD_DOC)
index 78d8be5885c5c5eb5ed0863664c32dd0146b8f20..2849b66eb9332c12141b8c4c77dc496a3e151e6b 100644 (file)
@@ -71,4 +71,6 @@ INSTALL(TARGETS MEDOPFactoryEngine DESTINATION ${SALOME_INSTALL_LIBS})
 FILE(GLOB MEDOPFactoryEngine_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
 INSTALL(FILES ${MEDOPFactoryEngine_HEADERS_HXX} DESTINATION ${SALOME_INSTALL_HEADERS})
 
-INSTALL(FILES test_medop_components.py PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ DESTINATION ${SALOME_INSTALL_BINS}/xmed)
+IF(SALOME_ENABLE_PYTHON)
+  INSTALL(FILES test_medop_components.py PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ DESTINATION ${SALOME_INSTALL_BINS}/xmed)
+ENDIF()