From 103d16bb9b129deccdc18cd85a546dd9bd33505b Mon Sep 17 00:00:00 2001 From: CEA Support SALOME Date: Wed, 21 Jan 2015 09:57:27 +0100 Subject: [PATCH] Add KERNEL detection and Python detection in CMakeLists.txt --- CMakeLists.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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") -- 2.39.2