X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=inline;f=CMakeLists.txt;h=12e36c5a5dd44d55ac092a8b8b50734b398b22e5;hb=58bb6b7459bebeeb089c9ed486c4683a8bae7288;hp=8196042c099e542ea53c882d7a260ebad043b398;hpb=88441aa985fa1329b81af33a2769bf2f8858aaa0;p=modules%2Fhydro.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 8196042c..12e36c5a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,6 +22,17 @@ IF(WIN32) ADD_DEFINITIONS(-DWNT) ENDIF(WIN32) + +# Common CMake macros +# =================== +SET(CONFIGURATION_ROOT_DIR $ENV{CONFIGURATION_ROOT_DIR} CACHE PATH "Path to the Salome CMake configuration files") +IF(EXISTS ${CONFIGURATION_ROOT_DIR}) + LIST(APPEND CMAKE_MODULE_PATH "${CONFIGURATION_ROOT_DIR}/cmake") + INCLUDE(SalomeMacros) +ELSE() + MESSAGE(FATAL_ERROR "We absolutely need the Salome CMake configuration files, please define CONFIGURATION_ROOT_DIR !") +ENDIF() + # Find KERNEL # ============== SET(KERNEL_ROOT_DIR $ENV{KERNEL_ROOT_DIR} CACHE PATH "Path to the Salome KERNEL")