]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Check of GEOM module was added
authormtn <mtn@opencascade.com>
Thu, 8 Aug 2013 11:22:04 +0000 (11:22 +0000)
committermtn <mtn@opencascade.com>
Thu, 8 Aug 2013 11:22:04 +0000 (11:22 +0000)
CMakeLists.txt

index e0a549826cce69a976d84954ac381408a0cdb3b2..029935f1e6c55e90f9e4d8d5567a6d3b377153a0 100644 (file)
@@ -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)