From: vsr Date: Wed, 15 Feb 2017 10:22:28 +0000 (+0300) Subject: Migration on OCCT 7.1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=79831b412c3dedefeaedaabdd542b87026babc51;p=plugins%2Facisplugin.git Migration on OCCT 7.1 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 40cdccb..916553d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") diff --git a/adm_local/cmake_files/FindACIS.cmake b/adm_local/cmake_files/FindACIS.cmake index f93f8e0..ec4195e 100644 --- a/adm_local/cmake_files/FindACIS.cmake +++ b/adm_local/cmake_files/FindACIS.cmake @@ -41,14 +41,14 @@ IF(OCCLICENSE_ROOT_DIR) LIST(APPEND CMAKE_PREFIX_PATH "${OCCLICENSE_ROOT_DIR}") ENDIF(OCCLICENSE_ROOT_DIR) -FIND_PATH(ACIS_INCLUDE_DIRS AcisGeom.hxx PATH_SUFFIXES include/opencascade) +FIND_PATH(ACIS_INCLUDE_DIRS AcisGeom.hxx PATH_SUFFIXES include/opencascade include/products) IF(ACIS_INCLUDE_DIRS) SET(ACIS_UPCOUNT 2) ELSE(ACIS_INCLUDE_DIRS) FIND_PATH(ACIS_INCLUDE_DIRS AcisGeom.hxx PATH_SUFFIXES include inc) ENDIF(ACIS_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)