]> SALOME platform Git repositories - tools/SALOME.git/commitdiff
Salome HOME
add CONFIGURATION informations in CMakeLists configuration
authorWissam HASSAN <support-salome@cea.fr>
Mon, 25 Jul 2016 12:32:37 +0000 (14:32 +0200)
committerWissam HASSAN <support-salome@cea.fr>
Mon, 25 Jul 2016 12:32:37 +0000 (14:32 +0200)
CMakeLists.txt

index ef0112e916cb9b47b208e38bb254c2aa3a34dc65..cdc1920f16caac14fdcbcf091d28a3e2dd79e7fc 100644 (file)
@@ -33,6 +33,18 @@ SET(${PROJECT_NAME_UC}_PATCH_VERSION 0)
 SET(${PROJECT_NAME_UC}_VERSION
   ${${PROJECT_NAME_UC}_MAJOR_VERSION}.${${PROJECT_NAME_UC}_MINOR_VERSION}.${${PROJECT_NAME_UC}_PATCH_VERSION})
 
+# 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")