From: CEA Support SALOME Date: Wed, 21 Jan 2015 08:57:27 +0000 (+0100) Subject: Add KERNEL detection and Python detection in CMakeLists.txt X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fcge%2Fcompile_DOC;p=tools%2Fdocumentation.git Add KERNEL detection and Python detection in CMakeLists.txt --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 6d44ae6..cb55833 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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")