From 85666c7a68c7b29a45f16cba9c81b951cea649f7 Mon Sep 17 00:00:00 2001 From: rnv Date: Mon, 14 Oct 2013 07:51:01 +0000 Subject: [PATCH] Porting PYHELLO SALOME module build procedure to the CMake build system: some corrections: 1) Move module configuration file to the root directory. 2) Remove deprecated files. --- CMakeLists.txt | 2 +- ...g.cmake.in => SalomePYHELLOConfig.cmake.in | 0 adm_local/cmake_files/CMakeLists.txt | 1 - adm_local/cmake_files/FindPYHELLO.cmake | 24 ------------------- 4 files changed, 1 insertion(+), 26 deletions(-) rename adm_local/cmake_files/SalomePYHELLOConfig.cmake.in => SalomePYHELLOConfig.cmake.in (100%) delete mode 100644 adm_local/cmake_files/FindPYHELLO.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index a51b9c3..fbc2b0c 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -162,7 +162,7 @@ EXPORT(TARGETS ${_${PROJECT_NAME}_exposed_targets} SET(GUI_ROOT_DIR "${GUI_ROOT_DIR}") SET(CONF_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}/include" "${PROJECT_BINARY_DIR}/include") -CONFIGURE_PACKAGE_CONFIG_FILE(adm_local/cmake_files/${PROJECT_NAME}Config.cmake.in +CONFIGURE_PACKAGE_CONFIG_FILE(${PROJECT_NAME}Config.cmake.in ${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake INSTALL_DESTINATION "${SALOME_INSTALL_CMAKE_LOCAL}" PATH_VARS CONF_INCLUDE_DIRS SALOME_INSTALL_CMAKE_LOCAL CMAKE_INSTALL_PREFIX diff --git a/adm_local/cmake_files/SalomePYHELLOConfig.cmake.in b/SalomePYHELLOConfig.cmake.in similarity index 100% rename from adm_local/cmake_files/SalomePYHELLOConfig.cmake.in rename to SalomePYHELLOConfig.cmake.in diff --git a/adm_local/cmake_files/CMakeLists.txt b/adm_local/cmake_files/CMakeLists.txt index c488036..4091377 100755 --- a/adm_local/cmake_files/CMakeLists.txt +++ b/adm_local/cmake_files/CMakeLists.txt @@ -23,7 +23,6 @@ # These files are data, module or lib files SET(_adm_data - FindPYHELLO.cmake FindSalomePYHELLO.cmake ) INSTALL(FILES ${_adm_data} DESTINATION ${SALOME_INSTALL_CMAKE_LOCAL}) diff --git a/adm_local/cmake_files/FindPYHELLO.cmake b/adm_local/cmake_files/FindPYHELLO.cmake deleted file mode 100644 index 73f4174..0000000 --- a/adm_local/cmake_files/FindPYHELLO.cmake +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright (C) 2007-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 -# -# - -SET(PYHELLO_CXXFLAGS -I${PYHELLO_ROOT_DIR}/include/salome) # to be removed -SET(PYHELLO_INCLUDE_DIRS ${PYHELLO_ROOT_DIR}/include/salome) - -FIND_LIBRARY(PYHELLO_SalomeIDLPYHELLO SalomeIDLPYHELLO ${PYHELLO_ROOT_DIR}/lib/salome) \ No newline at end of file -- 2.30.2