]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
CMake: using new macros SALOME_UPDATE_FLAG_AND_LOG_PACKAGE() and SALOME_PACKAGE_REPORT().
authorbruneton <bruneton>
Tue, 27 Aug 2013 08:59:14 +0000 (08:59 +0000)
committerbruneton <bruneton>
Tue, 27 Aug 2013 08:59:14 +0000 (08:59 +0000)
CMakeLists.txt

index 00bd3df4ba45dde39d21b653c5f35294a44e45ad..f3401aada4d66021ef759a11b56c53018a9b52ae 100755 (executable)
@@ -106,12 +106,16 @@ IF(NOT SALOME_LIGHT_ONLY)
 ENDIF() 
 IF(SALOME_BUILD_TESTS)
   ENABLE_TESTING()
-  FIND_PACKAGE(SalomeCppUnit REQUIRED)  
+  FIND_PACKAGE(SalomeCppUnit)
+  SALOME_UPDATE_FLAG_AND_LOG_PACKAGE(CppUnit SALOME_BUILD_TESTS)  
 ENDIF()
 IF(SALOME_BUILD_DOC)
-  FIND_PACKAGE(SalomeDoxygen REQUIRED)
-  FIND_PACKAGE(SalomeGraphviz)          # Remains optional even here.
-  FIND_PACKAGE(SalomeSphinx REQUIRED)
+  FIND_PACKAGE(SalomeDoxygen)
+  FIND_PACKAGE(SalomeGraphviz)
+  FIND_PACKAGE(SalomeSphinx)
+  SALOME_UPDATE_FLAG_AND_LOG_PACKAGE(Doxygen SALOME_BUILD_DOC)
+  SALOME_UPDATE_FLAG_AND_LOG_PACKAGE(Graphviz SALOME_BUILD_DOC)
+  SALOME_UPDATE_FLAG_AND_LOG_PACKAGE(Sphinx SALOME_BUILD_DOC)
 ENDIF()
 
 ##
@@ -131,19 +135,26 @@ FIND_PACKAGE(SalomePyQt4 REQUIRED)
 
 # Optional prerequisites for GUI
 IF(SALOME_USE_OCCVIEWER)
-  FIND_PACKAGE(SalomeCAS REQUIRED)
+  FIND_PACKAGE(SalomeCAS)
+  SALOME_UPDATE_FLAG_AND_LOG_PACKAGE(CAS SALOME_USE_OCCVIEWER)
 ENDIF()
 IF(SALOME_USE_GLVIEWER)
-  FIND_PACKAGE(SalomeOpenGL REQUIRED) 
+  FIND_PACKAGE(SalomeOpenGL)
+  SALOME_UPDATE_FLAG_AND_LOG_PACKAGE(OpenGL SALOME_USE_GLVIEWER) 
 ENDIF()
 IF(SALOME_USE_VTKVIEWER)
   # Required components are listed in the FindSalomeVTK.cmake file: 
-  FIND_PACKAGE(SalomeVTK 6.0 REQUIRED) 
+  FIND_PACKAGE(SalomeVTK 6.0) 
+  SALOME_UPDATE_FLAG_AND_LOG_PACKAGE(VTK SALOME_USE_VTKVIEWER)
 ENDIF()
 IF(SALOME_USE_PLOT2DVIEWER)
-  FIND_PACKAGE(SalomeQwt REQUIRED)  
+  FIND_PACKAGE(SalomeQwt)  
+  SALOME_UPDATE_FLAG_AND_LOG_PACKAGE(Qwt SALOME_USE_PLOT2DVIEWER)
 ENDIF()
 
+# Detection summary:
+SALOME_PACKAGE_REPORT()
+
 # Directories
 # (default values taken from KERNEL)
 # ===========