From: mtn Date: Thu, 8 Aug 2013 11:22:04 +0000 (+0000) Subject: Check of GEOM module was added X-Git-Tag: BR_hydro_v_0_1~126 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d7e8ba0c56afd6ccff2ff42cf3760752ba0a95c6;p=modules%2Fhydro.git Check of GEOM module was added --- diff --git a/CMakeLists.txt b/CMakeLists.txt index e0a54982..029935f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,6 +16,13 @@ ELSE(EXISTS ${GUI_ROOT_DIR}) MESSAGE(FATAL_ERROR "We absolutely need a Salome GUI, please define GUI_ROOT_DIR") ENDIF(EXISTS ${GUI_ROOT_DIR}) +SET(GEOM_ROOT_DIR $ENV{GEOM_ROOT_DIR} CACHE PATH "Path to the Salome GEOM") +IF(EXISTS ${GEOM_ROOT_DIR}) + INCLUDE(${GEOM_ROOT_DIR}/adm_local/cmake_files/FindGEOM.cmake) +ELSE(EXISTS ${GEOM_ROOT_DIR}) + MESSAGE(FATAL_ERROR "We absolutely need a Salome GEOM, please define GEOM_ROOT_DIR") +ENDIF(EXISTS ${GEOM_ROOT_DIR}) + set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${KERNEL_ROOT_DIR}/salome_adm/cmake_files ${GUI_ROOT_DIR}/adm_local/cmake_files) find_package(SalomeQT4) find_package(SalomeCAS)