]> SALOME platform Git repositories - samples/pycalculator.git/commitdiff
Salome HOME
Merge 'abn/configuration' into master branch. V8_1_0b1
authorrnv <rnv@opencascade.com>
Wed, 10 Aug 2016 15:27:32 +0000 (18:27 +0300)
committerrnv <rnv@opencascade.com>
Wed, 10 Aug 2016 15:27:32 +0000 (18:27 +0300)
CMakeLists.txt

index a9b38a100193ab8ab52d912b066c669a955eaf75..79e745f0099184a7962d4577128bedc469aa7f66 100755 (executable)
@@ -34,6 +34,16 @@ SET(${PROJECT_NAME_UC}_VERSION
   ${${PROJECT_NAME_UC}_MAJOR_VERSION}.${${PROJECT_NAME_UC}_MINOR_VERSION}.${${PROJECT_NAME_UC}_PATCH_VERSION})
 SET(${PROJECT_NAME_UC}_VERSION_DEV 1)
 
+# 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")