Salome HOME
Revert "Synchronize adm files"
[modules/med.git] / src / MEDOP / CMakeLists.txt
index 00a361e6af37d1587a97b12ab520e32fda247ba2..8411c6ae66872e5052f0e7f2b194bc1fb83e8c73 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright (C) 2007-2012  CEA/DEN, EDF R&D
+# Copyright (C) 2012-2014  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
 # License as published by the Free Software Foundation; either
-# version 2.1 of the License.
+# version 2.1 of the License, or (at your option) any later version.
 #
 # This library is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 #
 
 ADD_SUBDIRECTORY(cmp)
-ADD_SUBDIRECTORY(tui)
 ADD_SUBDIRECTORY(res)
-ADD_SUBDIRECTORY(gui)
-ADD_SUBDIRECTORY(exe)
-ADD_SUBDIRECTORY(doc)
+
+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)