]> SALOME platform Git repositories - modules/jobmanager.git/commitdiff
Salome HOME
Moving *all* CMake detection files to common CONFIGURATION repo: udapte CMakeLists abn/configuration
authorrnv <rnv@opencascade.com>
Thu, 28 Jul 2016 11:38:32 +0000 (14:38 +0300)
committerrnv <rnv@opencascade.com>
Thu, 28 Jul 2016 11:38:32 +0000 (14:38 +0300)
CMakeLists.txt
adm_local/CMakeLists.txt

index 39fb9fb794c2ae7fd7653861ef83abda24117a6b..316b1f4b958b3559c54e0ab6ad1d3b05ef248150 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")
@@ -51,8 +61,6 @@ ENDIF(EXISTS ${KERNEL_ROOT_DIR})
 INCLUDE(SalomeSetupPlatform)   # From KERNEL
 # Always build libraries as shared objects:
 SET(BUILD_SHARED_LIBS TRUE)
-# Local macros:
-LIST(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/adm_local/cmake_files")
 
 # User options
 # ============
index 907360ed9ee0a9970f8da687b88f49ad96f38bac..4df2dc0c3bb4c1486ef6bf9f323271acea179793 100755 (executable)
@@ -18,4 +18,3 @@
 #
 
 ADD_SUBDIRECTORY(unix)
-ADD_SUBDIRECTORY(cmake_files)