Salome HOME
Minimal CORBA mode: adapted PARAVIS' Python API to work in this mode.
[modules/paravis.git] / src / CMakeLists.txt
index 843f402ec648fe4352336a6281be8a56987df238..3aa7a985119727ffd96321ffca34bd3cde14c149 100644 (file)
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-SET(SUBDIRS
+SET(_subdirs
   ENGINE
   PVGUI
   PV_SWIG
   Macro
   )
+  
+IF(NOT SALOME_PARAVIS_MINIMAL_CORBA)
+  # Append in first position  
+  LIST(INSERT _subdirs 0 VTKWrapping)
+  ADD_DEFINITIONS(-DPARAVIS_WITH_FULL_CORBA)
+ENDIF()
 
-IF(BUILD_PLUGINS)
-  SET(SUBDIRS
-    ${SUBDIRS}
-    Plugins
-    )
-ENDIF(BUILD_PLUGINS)
+IF(SALOME_PARAVIS_BUILD_PLUGINS)
+  LIST(APPEND _subdirs Plugins)
+ENDIF()
 
-FOREACH(dir ${SUBDIRS})
+FOREACH(dir ${_subdirs})
   ADD_SUBDIRECTORY(${dir})
-ENDFOREACH(dir ${SUBDIRS})
+ENDFOREACH()
+
+SET(WRAP_IDL_I_HH "${WRAP_IDL_I_HH}" PARENT_SCOPE)
+SET(WRAP_IDL_I_CC "${WRAP_IDL_I_CC}" PARENT_SCOPE)
+