2013-09-10 18:47:38 +06:00
|
|
|
# Copyright (C) 2012-2013 CEA/DEN, EDF R&D, OPEN CASCADE
|
|
|
|
#
|
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
|
|
# License as published by the Free Software Foundation; either
|
|
|
|
# version 2.1 of the License.
|
|
|
|
#
|
|
|
|
# This library is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
# Lesser General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
|
|
# License along with this library; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
#
|
|
|
|
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
|
|
|
#
|
|
|
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8 FATAL_ERROR)
|
2013-10-14 22:22:57 +06:00
|
|
|
INCLUDE(CMakeDependentOption)
|
|
|
|
|
2013-09-10 18:47:38 +06:00
|
|
|
PROJECT(SalomeGEOM C CXX)
|
|
|
|
|
|
|
|
# Ensure a proper linker behavior:
|
|
|
|
CMAKE_POLICY(SET CMP0003 NEW)
|
|
|
|
|
|
|
|
# Versioning
|
|
|
|
# ===========
|
|
|
|
# Project name, upper case
|
|
|
|
STRING(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UC)
|
|
|
|
|
|
|
|
SET(${PROJECT_NAME_UC}_MAJOR_VERSION 7)
|
2013-09-19 15:37:56 +06:00
|
|
|
SET(${PROJECT_NAME_UC}_MINOR_VERSION 2)
|
2013-09-10 18:47:38 +06:00
|
|
|
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})
|
|
|
|
SET(${PROJECT_NAME_UC}_VERSION_DEV 1)
|
|
|
|
|
|
|
|
# Find KERNEL
|
|
|
|
# ===========
|
|
|
|
SET(KERNEL_ROOT_DIR $ENV{KERNEL_ROOT_DIR} CACHE PATH "Path to the Salome KERNEL")
|
|
|
|
IF(EXISTS ${KERNEL_ROOT_DIR})
|
|
|
|
LIST(APPEND CMAKE_MODULE_PATH "${KERNEL_ROOT_DIR}/salome_adm/cmake_files")
|
|
|
|
INCLUDE(SalomeMacros)
|
|
|
|
FIND_PACKAGE(SalomeKERNEL REQUIRED)
|
2013-10-22 13:24:09 +06:00
|
|
|
ADD_DEFINITIONS(${KERNEL_DEFINITIONS})
|
|
|
|
INCLUDE_DIRECTORIES(${KERNEL_INCLUDE_DIRS})
|
2013-09-10 18:47:38 +06:00
|
|
|
ELSE(EXISTS ${KERNEL_ROOT_DIR})
|
|
|
|
MESSAGE(FATAL_ERROR "We absolutely need a Salome KERNEL, please define KERNEL_ROOT_DIR")
|
|
|
|
ENDIF(EXISTS ${KERNEL_ROOT_DIR})
|
|
|
|
|
|
|
|
IF(SALOME_LIGHT_ONLY)
|
2013-10-29 14:07:30 +06:00
|
|
|
MESSAGE(FATAL_ERROR "GEOM module can't be built in Light mode (without CORBA)")
|
2013-09-10 18:47:38 +06:00
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
# Platform setup
|
|
|
|
# ==============
|
|
|
|
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 defined in KERNEL
|
|
|
|
# ============
|
2013-10-22 13:24:09 +06:00
|
|
|
OPTION(SALOME_BUILD_DOC "Generate SALOME GEOM documentation" ON)
|
|
|
|
OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ON)
|
2013-09-10 18:47:38 +06:00
|
|
|
|
|
|
|
# Advanced options:
|
2013-10-22 13:24:09 +06:00
|
|
|
OPTION(SALOME_BUILD_GUI "Enable GUI" ON)
|
2013-10-14 22:22:57 +06:00
|
|
|
CMAKE_DEPENDENT_OPTION(SALOME_GEOM_USE_OPENCV "Enable shape recognition from picture" OFF
|
|
|
|
"SALOME_BUILD_GUI" OFF)
|
2013-09-11 20:21:14 +06:00
|
|
|
MARK_AS_ADVANCED(SALOME_BUILD_GUI SALOME_GEOM_USE_OPENCV)
|
2013-09-10 18:47:38 +06:00
|
|
|
|
2013-10-30 22:50:50 +06:00
|
|
|
# Debug options (!!! FOR DEVELOPERS ONLY !!! TO BE REMOVED LATER !!!)
|
|
|
|
IF(CMAKE_BUILD_TYPE MATCHES "^Debug$")
|
|
|
|
OPTION(SALOME_GEOM_DEBUG_CC "Debug curve creator" OFF)
|
|
|
|
MARK_AS_ADVANCED(SALOME_GEOM_DEBUG_CC)
|
|
|
|
|
|
|
|
IF(SALOME_GEOM_DEBUG_CC)
|
|
|
|
ADD_DEFINITIONS(-DDEBUG_CURVE_CREATOR)
|
|
|
|
ENDIF(SALOME_GEOM_DEBUG_CC)
|
|
|
|
ENDIF()
|
|
|
|
|
2013-09-10 18:47:38 +06:00
|
|
|
# Prerequisites
|
|
|
|
# =============
|
|
|
|
# Find "big" prerequisites first - they reference themselves many others
|
|
|
|
# -> this can help finding the smaller prerequisites and detect conficts.
|
|
|
|
# In our case KERNEL has already loaded many prereq:
|
|
|
|
|
|
|
|
##
|
|
|
|
## From KERNEL:
|
|
|
|
##
|
|
|
|
|
|
|
|
# Various
|
|
|
|
FIND_PACKAGE(SalomePython REQUIRED)
|
|
|
|
FIND_PACKAGE(SalomePThread REQUIRED)
|
|
|
|
FIND_PACKAGE(SalomeSWIG REQUIRED)
|
|
|
|
FIND_PACKAGE(SalomeBoost REQUIRED)
|
|
|
|
FIND_PACKAGE(SalomeOmniORB REQUIRED)
|
|
|
|
FIND_PACKAGE(SalomeOmniORBPy REQUIRED)
|
2013-10-02 19:13:33 +06:00
|
|
|
FIND_PACKAGE(SalomeLibXml2 REQUIRED)
|
2013-09-11 20:21:14 +06:00
|
|
|
FIND_PACKAGE(SalomeHDF5 REQUIRED COMPONENTS C)
|
2013-09-10 18:47:38 +06:00
|
|
|
|
|
|
|
# Other KERNEL optionals:
|
2013-09-11 20:21:14 +06:00
|
|
|
IF(SALOME_USE_MPI)
|
|
|
|
FIND_PACKAGE(SalomeMPI) # needed for doc generation by Sphinx
|
|
|
|
ENDIF()
|
2013-09-10 18:47:38 +06:00
|
|
|
IF(SALOME_BUILD_TESTS)
|
|
|
|
ENABLE_TESTING()
|
|
|
|
FIND_PACKAGE(SalomeCppUnit)
|
2013-09-17 18:00:03 +06:00
|
|
|
SALOME_LOG_OPTIONAL_PACKAGE(CppUnit SALOME_BUILD_TESTS)
|
2013-09-10 18:47:38 +06:00
|
|
|
ENDIF()
|
|
|
|
IF(SALOME_BUILD_DOC)
|
|
|
|
FIND_PACKAGE(SalomeDoxygen)
|
|
|
|
FIND_PACKAGE(SalomeGraphviz)
|
|
|
|
FIND_PACKAGE(SalomeSphinx)
|
2013-09-17 18:00:03 +06:00
|
|
|
SALOME_LOG_OPTIONAL_PACKAGE(Doxygen SALOME_BUILD_DOC)
|
|
|
|
SALOME_LOG_OPTIONAL_PACKAGE(Graphviz SALOME_BUILD_DOC)
|
|
|
|
SALOME_LOG_OPTIONAL_PACKAGE(Sphinx SALOME_BUILD_DOC)
|
2013-09-10 18:47:38 +06:00
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
# Find GUI (optional)
|
2013-09-11 20:21:14 +06:00
|
|
|
IF(SALOME_BUILD_GUI)
|
2013-09-10 18:47:38 +06:00
|
|
|
SET(GUI_ROOT_DIR $ENV{GUI_ROOT_DIR} CACHE PATH "Path to the Salome GUI")
|
|
|
|
IF(EXISTS ${GUI_ROOT_DIR})
|
|
|
|
LIST(APPEND CMAKE_MODULE_PATH "${GUI_ROOT_DIR}/adm_local/cmake_files")
|
|
|
|
FIND_PACKAGE(SalomeGUI)
|
2013-10-22 13:24:09 +06:00
|
|
|
ADD_DEFINITIONS(${GUI_DEFINITIONS})
|
|
|
|
INCLUDE_DIRECTORIES(${GUI_INCLUDE_DIRS})
|
2013-09-10 18:47:38 +06:00
|
|
|
ELSE(EXISTS ${GUI_ROOT_DIR})
|
|
|
|
MESSAGE(STATUS "GUI_ROOT_DIR is not well defined, GEOM will be built without GUI!!!")
|
|
|
|
ENDIF(EXISTS ${GUI_ROOT_DIR})
|
2013-09-17 18:00:03 +06:00
|
|
|
SALOME_LOG_OPTIONAL_PACKAGE(SalomeGUI SALOME_BUILD_GUI)
|
2013-09-11 20:21:14 +06:00
|
|
|
ENDIF(SALOME_BUILD_GUI)
|
2013-09-10 18:47:38 +06:00
|
|
|
|
|
|
|
##
|
|
|
|
## Prerequisites From GUI:
|
|
|
|
##
|
2013-10-11 19:08:43 +06:00
|
|
|
|
2013-09-11 20:21:14 +06:00
|
|
|
IF(SALOME_BUILD_GUI)
|
2013-09-24 18:43:16 +06:00
|
|
|
|
2013-09-10 18:47:38 +06:00
|
|
|
# Qt4
|
|
|
|
FIND_PACKAGE(SalomeQt4 REQUIRED COMPONENTS QtCore QtGui QtXml)
|
|
|
|
|
|
|
|
# Optional prerequisites for GUI
|
|
|
|
IF(SALOME_USE_GLVIEWER)
|
|
|
|
FIND_PACKAGE(SalomeOpenGL)
|
2013-09-17 18:00:03 +06:00
|
|
|
SALOME_LOG_OPTIONAL_PACKAGE(OpenGL SALOME_USE_GLVIEWER)
|
2013-09-10 18:47:38 +06:00
|
|
|
ENDIF()
|
2013-09-11 20:21:14 +06:00
|
|
|
ENDIF(SALOME_BUILD_GUI)
|
2013-09-10 18:47:38 +06:00
|
|
|
|
|
|
|
##
|
|
|
|
## GEOM specifics
|
|
|
|
##
|
|
|
|
|
2013-10-11 19:08:43 +06:00
|
|
|
FIND_PACKAGE(SalomeCAS REQUIRED)
|
|
|
|
FIND_PACKAGE(SalomeVTK 6.0 REQUIRED)
|
|
|
|
|
2013-10-14 22:22:57 +06:00
|
|
|
# OpenCV
|
2013-09-13 15:55:47 +06:00
|
|
|
IF(SALOME_GEOM_USE_OPENCV)
|
2013-10-22 13:24:09 +06:00
|
|
|
FIND_PACKAGE(SalomeOpenCV)
|
2013-10-14 22:22:57 +06:00
|
|
|
SALOME_LOG_OPTIONAL_PACKAGE(OpenCV SALOME_GEOM_USE_OPENCV)
|
|
|
|
ADD_DEFINITIONS(-DWITH_OPENCV)
|
|
|
|
ENDIF(SALOME_GEOM_USE_OPENCV)
|
2013-09-10 18:47:38 +06:00
|
|
|
|
|
|
|
# Detection summary:
|
2013-09-17 18:00:03 +06:00
|
|
|
SALOME_PACKAGE_REPORT_AND_CHECK()
|
2013-09-10 18:47:38 +06:00
|
|
|
|
|
|
|
# Directories
|
|
|
|
# (default values taken from KERNEL)
|
|
|
|
# ===========
|
|
|
|
SET(SALOME_INSTALL_BINS "${SALOME_INSTALL_BINS}" CACHE PATH "Install path: SALOME binaries")
|
|
|
|
SET(SALOME_INSTALL_LIBS "${SALOME_INSTALL_LIBS}" CACHE PATH "Install path: SALOME libs")
|
|
|
|
SET(SALOME_INSTALL_IDLS "${SALOME_INSTALL_IDLS}" CACHE PATH "Install path: SALOME IDL files")
|
|
|
|
SET(SALOME_INSTALL_HEADERS "${SALOME_INSTALL_HEADERS}" CACHE PATH "Install path: SALOME headers")
|
|
|
|
SET(SALOME_INSTALL_SCRIPT_SCRIPTS "${SALOME_INSTALL_SCRIPT_SCRIPTS}" CACHE PATH
|
|
|
|
"Install path: SALOME scripts")
|
|
|
|
SET(SALOME_INSTALL_SCRIPT_DATA "${SALOME_INSTALL_SCRIPT_DATA}" CACHE PATH
|
|
|
|
"Install path: SALOME script data")
|
|
|
|
SET(SALOME_INSTALL_SCRIPT_PYTHON "${SALOME_INSTALL_SCRIPT_PYTHON}" CACHE PATH
|
|
|
|
"Install path: SALOME Python scripts")
|
|
|
|
SET(SALOME_INSTALL_PYTHON "${SALOME_INSTALL_PYTHON}" CACHE PATH "Install path: SALOME Python stuff")
|
|
|
|
SET(SALOME_INSTALL_PYTHON_SHARED "${SALOME_INSTALL_PYTHON_SHARED}" CACHE PATH
|
|
|
|
"Install path: SALOME Python shared modules")
|
|
|
|
SET(SALOME_INSTALL_CMAKE "${SALOME_INSTALL_CMAKE}" CACHE PATH "Install path: SALOME CMake files")
|
|
|
|
SET(SALOME_INSTALL_CMAKE_LOCAL "${SALOME_INSTALL_CMAKE_LOCAL}" CACHE PATH
|
|
|
|
"Install path: local SALOME CMake files")
|
|
|
|
SET(SALOME_INSTALL_AMCONFIG_LOCAL "${SALOME_INSTALL_AMCONFIG_LOCAL}" CACHE PATH
|
|
|
|
"Install path: local SALOME config files (obsolete, to be removed)")
|
|
|
|
|
|
|
|
SET(SALOME_INSTALL_RES "${SALOME_INSTALL_RES}" CACHE PATH "Install path: SALOME resources")
|
|
|
|
SET(SALOME_INSTALL_DOC "${SALOME_INSTALL_DOC}" CACHE PATH "Install path: SALOME documentation")
|
|
|
|
|
|
|
|
# Specific to GEOM:
|
|
|
|
SET(SALOME_GEOM_INSTALL_RES_DATA "${SALOME_INSTALL_RES}/geom" CACHE PATH
|
|
|
|
"Install path: SALOME GEOM specific data")
|
|
|
|
SET(SALOME_GEOM_INSTALL_RES_SCRIPTS "${SALOME_INSTALL_RES}/geom" CACHE PATH
|
|
|
|
"Install path: SALOME GEOM scripts")
|
|
|
|
SET(SALOME_GEOM_INSTALL_PLUGINS share/salome/plugins/geom CACHE PATH
|
|
|
|
"Install path: SALOME GEOM plugins")
|
|
|
|
|
|
|
|
MARK_AS_ADVANCED(SALOME_INSTALL_BINS SALOME_INSTALL_LIBS SALOME_INSTALL_IDLS SALOME_INSTALL_HEADERS)
|
|
|
|
MARK_AS_ADVANCED(SALOME_INSTALL_SCRIPT_SCRIPTS SALOME_INSTALL_SCRIPT_DATA SALOME_INSTALL_SCRIPT_PYTHON)
|
|
|
|
MARK_AS_ADVANCED(SALOME_INSTALL_APPLISKEL_SCRIPTS SALOME_INSTALL_APPLISKEL_PYTHON SALOME_INSTALL_CMAKE SALOME_INSTALL_CMAKE_LOCAL SALOME_INSTALL_RES)
|
|
|
|
MARK_AS_ADVANCED(SALOME_INSTALL_PYTHON SALOME_INSTALL_PYTHON_SHARED)
|
|
|
|
MARK_AS_ADVANCED(SALOME_GEOM_INSTALL_RES_DATA SALOME_GEOM_INSTALL_RES_SCRIPTS SALOME_GEOM_INSTALL_PLUGINS)
|
|
|
|
MARK_AS_ADVANCED(SALOME_INSTALL_AMCONFIG_LOCAL SALOME_INSTALL_DOC)
|
|
|
|
|
2013-10-29 14:07:30 +06:00
|
|
|
# Accumulate environment variables for GEOM module
|
2013-10-31 16:57:08 +06:00
|
|
|
SALOME_ACCUMULATE_ENVIRONMENT(PYTHONPATH NOCHECK ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_BINS}
|
|
|
|
${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_PYTHON}
|
|
|
|
${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_PYTHON_SHARED})
|
|
|
|
SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH NOCHECK ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_LIBS})
|
2013-10-29 14:07:30 +06:00
|
|
|
|
2013-09-10 18:47:38 +06:00
|
|
|
# Sources
|
|
|
|
# ========
|
|
|
|
ADD_SUBDIRECTORY(idl)
|
|
|
|
|
|
|
|
ADD_SUBDIRECTORY(adm_local)
|
|
|
|
ADD_SUBDIRECTORY(resources)
|
|
|
|
ADD_SUBDIRECTORY(bin)
|
|
|
|
ADD_SUBDIRECTORY(src)
|
2013-09-21 17:35:49 +06:00
|
|
|
IF(SALOME_BUILD_DOC)
|
|
|
|
ADD_SUBDIRECTORY(doc)
|
|
|
|
ENDIF()
|
2013-09-10 18:47:38 +06:00
|
|
|
|
|
|
|
# Header configuration
|
|
|
|
# ====================
|
|
|
|
SALOME_XVERSION(${PROJECT_NAME})
|
|
|
|
SALOME_CONFIGURE_FILE(GEOM_version.h.in GEOM_version.h INSTALL ${SALOME_INSTALL_HEADERS})
|
|
|
|
|
|
|
|
# Configuration export
|
|
|
|
# (here only the level 1 prerequisites are exposed)
|
|
|
|
# ====================
|
|
|
|
INCLUDE(CMakePackageConfigHelpers)
|
|
|
|
|
|
|
|
# List of targets in this project we want to make visible to the rest of the world.
|
|
|
|
# They all have to be INSTALL'd with the option "EXPORT ${PROJECT_NAME}TargetGroup"
|
|
|
|
SET(_${PROJECT_NAME}_exposed_targets
|
|
|
|
GEOMArchimede BREPExport BREPImport BlockFix GEOMbasic GEOMAlgo GEOMClient GEOMImpl
|
2013-09-16 19:59:50 +06:00
|
|
|
GEOMUtils GEOMEngine GEOM_SupervEngine IGESExport IGESImport GEOMSketcher
|
2013-10-30 22:50:50 +06:00
|
|
|
SalomeIDLGEOM STEPExport STEPImport STLExport ShHealOper XAO AdvancedEngine OCC2VTK
|
|
|
|
VTKExport CurveCreator
|
2013-09-10 18:47:38 +06:00
|
|
|
)
|
2013-09-11 20:21:14 +06:00
|
|
|
IF(SALOME_BUILD_GUI)
|
2013-09-10 18:47:38 +06:00
|
|
|
LIST(APPEND _${PROJECT_NAME}_exposed_targets
|
|
|
|
AdvancedGUI BasicGUI BlocksGUI BooleanGUI BuildGUI DisplayGUI DlgRef EntityGUI GEOMBase
|
|
|
|
GEOMFiltersSelection GEOM GEOMToolsGUI GenerationGUI GroupGUI Material MeasureGUI GEOMObject
|
2013-10-10 18:47:39 +06:00
|
|
|
OperationGUI PrimitiveGUI RepairGUI TransformationGUI ImportExportGUI
|
2013-09-10 18:47:38 +06:00
|
|
|
)
|
2013-09-11 20:21:14 +06:00
|
|
|
ENDIF(SALOME_BUILD_GUI)
|
2013-09-10 18:47:38 +06:00
|
|
|
|
|
|
|
IF(SALOME_GEOM_USE_OPENCV)
|
|
|
|
LIST(APPEND _${PROJECT_NAME}_exposed_targets
|
|
|
|
GEOMShapeRec
|
|
|
|
)
|
|
|
|
ENDIF(SALOME_GEOM_USE_OPENCV)
|
|
|
|
|
|
|
|
# Add all targets to the build-tree export set
|
|
|
|
EXPORT(TARGETS ${_${PROJECT_NAME}_exposed_targets}
|
|
|
|
FILE ${PROJECT_BINARY_DIR}/${PROJECT_NAME}Targets.cmake)
|
|
|
|
|
|
|
|
# Create the configuration files:
|
|
|
|
# - in the build tree:
|
|
|
|
|
|
|
|
# Ensure the variables are always defined for the configure:
|
2013-10-22 13:24:09 +06:00
|
|
|
SET(KERNEL_ROOT_DIR "${KERNEL_ROOT_DIR}")
|
|
|
|
SET(GUI_ROOT_DIR "${GUI_ROOT_DIR}")
|
2013-09-10 18:47:38 +06:00
|
|
|
SET(CAS_ROOT_DIR "${CAS_ROOT_DIR}")
|
2013-10-22 13:24:09 +06:00
|
|
|
SET(VTK_ROOT_DIR "${VTK_ROOT_DIR}")
|
2013-09-10 18:47:38 +06:00
|
|
|
SET(OPENCV_ROOT_DIR "${OPENCV_ROOT_DIR}")
|
|
|
|
|
|
|
|
SET(CONF_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}/include" "${PROJECT_BINARY_DIR}/include")
|
2013-10-10 18:47:39 +06:00
|
|
|
CONFIGURE_PACKAGE_CONFIG_FILE(${PROJECT_NAME}Config.cmake.in
|
2013-09-10 18:47:38 +06:00
|
|
|
${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake
|
2013-09-24 18:43:16 +06:00
|
|
|
INSTALL_DESTINATION "${SALOME_INSTALL_CMAKE_LOCAL}"
|
|
|
|
PATH_VARS CONF_INCLUDE_DIRS SALOME_INSTALL_CMAKE_LOCAL CMAKE_INSTALL_PREFIX
|
2013-10-22 13:24:09 +06:00
|
|
|
KERNEL_ROOT_DIR GUI_ROOT_DIR CAS_ROOT_DIR VTK_ROOT_DIR OPENCV_ROOT_DIR)
|
2013-09-10 18:47:38 +06:00
|
|
|
|
|
|
|
# - in the install tree (VSR 16/08/2013: TEMPORARILY COMMENT THIS - TO REMOVE?):
|
|
|
|
# Get the relative path of the include directory so
|
|
|
|
# we can register it in the generated configuration files:
|
|
|
|
#SET(CONF_INCLUDE_DIRS "${CMAKE_INSTALL_PREFIX}/${INSTALL_INCLUDE_DIR}")
|
|
|
|
#CONFIGURE_PACKAGE_CONFIG_FILE(adm_local/cmake_files/${PROJECT_NAME}Config.cmake.in
|
|
|
|
# ${PROJECT_BINARY_DIR}/to_install/${PROJECT_NAME}Config.cmake
|
|
|
|
# INSTALL_DESTINATION "${SALOME_INSTALL_CMAKE}"
|
|
|
|
# PATH_VARS CONF_INCLUDE_DIRS SALOME_INSTALL_CMAKE CMAKE_INSTALL_PREFIX
|
2013-10-22 13:24:09 +06:00
|
|
|
# KERNEL_ROOT_DIR GUI_ROOT_DIR CAS_ROOT_DIR VTK_ROOT_DIR OPENCV_ROOT_DIR)
|
2013-09-10 18:47:38 +06:00
|
|
|
|
|
|
|
WRITE_BASIC_PACKAGE_VERSION_FILE(${PROJECT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake
|
|
|
|
VERSION ${${PROJECT_NAME_UC}_VERSION}
|
|
|
|
COMPATIBILITY AnyNewerVersion)
|
|
|
|
|
|
|
|
# Install the CMake configuration files:
|
|
|
|
INSTALL(FILES
|
|
|
|
"${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
|
|
|
|
"${PROJECT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake"
|
2013-09-24 18:43:16 +06:00
|
|
|
DESTINATION "${SALOME_INSTALL_CMAKE_LOCAL}")
|
2013-09-10 18:47:38 +06:00
|
|
|
|
|
|
|
# Install the export set for use with the install-tree
|
2013-09-24 18:43:16 +06:00
|
|
|
INSTALL(EXPORT ${PROJECT_NAME}TargetGroup DESTINATION "${SALOME_INSTALL_CMAKE_LOCAL}"
|
2013-09-10 18:47:38 +06:00
|
|
|
FILE ${PROJECT_NAME}Targets.cmake)
|