]> SALOME platform Git repositories - tools/documentation.git/commitdiff
Salome HOME
Add KERNEL detection and Python detection in CMakeLists.txt cge/compile_DOC
authorCEA Support SALOME <support-salome@cea.fr>
Wed, 21 Jan 2015 08:57:27 +0000 (09:57 +0100)
committerCEA Support SALOME <support-salome@cea.fr>
Wed, 21 Jan 2015 08:57:27 +0000 (09:57 +0100)
CMakeLists.txt

index 6d44ae6af96f955d987d0c0ae1cfb7eaedf4e991..cb55833bd9e0db062087d26cf8b66db8a197f4d1 100644 (file)
@@ -40,12 +40,25 @@ INCLUDE(SalomeSetupPlatform)
 INCLUDE(SalomeMacros)
 
 
+# Find KERNEL
+# ===========
+SET(KERNEL_ROOT_DIR $ENV{KERNEL_ROOT_DIR} CACHE PATH "Path to the Salome KERNEL")
+IF(EXISTS ${KERNEL_ROOT_DIR})
+  LIST(APPEND CMAKE_MODULE_PATH "${KERNEL_ROOT_DIR}/salome_adm/cmake_files")
+  INCLUDE(SalomeMacros)
+  FIND_PACKAGE(SalomeKERNEL REQUIRED)
+ELSE(EXISTS ${KERNEL_ROOT_DIR})
+  MESSAGE(FATAL_ERROR "We absolutely need a Salome KERNEL, please define KERNEL_ROOT_DIR")
+ENDIF(EXISTS ${KERNEL_ROOT_DIR})
+
+FIND_PACKAGE(SalomePython)
 # Find prerequisites needed to documentation generation
 # ==================================================
 FIND_PACKAGE(SalomeDoxygen)
 FIND_PACKAGE(SalomeGraphviz)
 FIND_PACKAGE(SalomeSphinx)
 
+
 # Directories
 # =========
 SET(SALOME_INSTALL_DOC_GUI   gui   CACHE PATH "Install path: user documentation")