]> SALOME platform Git repositories - plugins/dxfplugin.git/commitdiff
Salome HOME
Migration on OCCT 7.1
authorvsr <vsr@opencascade.com>
Wed, 15 Feb 2017 10:23:48 +0000 (13:23 +0300)
committervsr <vsr@opencascade.com>
Wed, 15 Feb 2017 10:23:48 +0000 (13:23 +0300)
CMakeLists.txt
adm_local/cmake_files/FindDXF.cmake

index a56d25ad501e76e5b46c0b0f45f8e238321fe9f6..3b4e8969c657e1d5b4e042161711d4f97711970a 100644 (file)
@@ -35,6 +35,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 0)
 
+# 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")
index 33b4fa5e478d33942edd9bb91e63809d2518bcfa..c520eb02bc036a236b3d9f60d4b9ff1ea5f0ef0e 100644 (file)
@@ -41,14 +41,14 @@ IF(OCCLICENSE_ROOT_DIR)
   LIST(APPEND CMAKE_PREFIX_PATH "${OCCLICENSE_ROOT_DIR}")
 ENDIF(OCCLICENSE_ROOT_DIR)
 
-FIND_PATH(DXF_INCLUDE_DIRS DxfData.hxx PATH_SUFFIXES include/opencascade)
+FIND_PATH(DXF_INCLUDE_DIRS DxfData.hxx PATH_SUFFIXES include/opencascade include/products)
 IF(DXF_INCLUDE_DIRS)
   SET(DXF_UPCOUNT 2)
 ELSE(DXF_INCLUDE_DIRS)
   FIND_PATH(DXF_INCLUDE_DIRS DxfData.hxx PATH_SUFFIXES include inc)
 ENDIF(DXF_INCLUDE_DIRS)
 
-FIND_PATH(OCCTLICENSE_INCLUDE_DIRS OCCLicense_Activate.hxx PATH_SUFFIXES include/opencascade)
+FIND_PATH(OCCTLICENSE_INCLUDE_DIRS OCCLicense_Activate.hxx PATH_SUFFIXES include/opencascade include/products)
 IF(NOT OCCTLICENSE_INCLUDE_DIRS)
   FIND_PATH(OCCTLICENSE_INCLUDE_DIRS OCCLicense_Activate.hxx PATH_SUFFIXES include inc)
 ENDIF(NOT OCCTLICENSE_INCLUDE_DIRS)