FIND_PACKAGE(SalomePython)
FIND_PACKAGE(SalomeOmniORB)
FIND_PACKAGE(SalomeOmniORBPy)
-FIND_PACKAGE(SalomeSphinx)
FIND_PACKAGE(SalomeSIP)
FIND_PACKAGE(SalomePyQt4)
+IF(SALOME_BUILD_DOC)
+ FIND_PACKAGE(SalomeSphinx REQUIRED)
+ENDIF()
SET(BINDIR bin/salome)
SET(RESDIR share/salome/resources/parametric)
ADD_SUBDIRECTORY(idl)
ADD_SUBDIRECTORY(src)
-IF(SPHINX_IS_OK)
+IF(SALOME_BUILD_DOC)
ADD_SUBDIRECTORY(doc)
-ELSE(SPHINX_IS_OK)
- MESSAGE(STATUS "Sphinx not found, doc will not be built")
-ENDIF(SPHINX_IS_OK)
+ENDIF(SALOME_BUILD_DOC)
ADD_SUBDIRECTORY(resources)