From bcedb31b4b51f122639970f634e3c765e57dc128 Mon Sep 17 00:00:00 2001 From: rnv Date: Tue, 22 Oct 2013 09:14:55 +0000 Subject: [PATCH] Porting BLSURFPLUGIN SALOME module to the CMake build system: initial version. --- BLSURFPLUGIN_version.h.in | 20 +- CMakeLists.txt | 247 ++++++++++ Makefile.am | 64 --- SalomeBLSURFPLUGINConfig.cmake.in | 103 ++++ .../{unix/Makefile.am => CMakeLists.txt} | 15 +- adm_local/cmake_files/CMakeLists.txt | 31 ++ adm_local/cmake_files/FindBLSURF.cmake | 46 -- .../FindBLSURFPLUGIN.cmake} | 16 +- .../{FindCADSURF.cmake => FindMESHGEMS.cmake} | 46 +- .../cmake_files/FindSalomeBLSURFPLUGIN.cmake | 20 +- .../{Makefile.am => FindSalomeMESHGEMS.cmake} | 11 +- build_cmake => adm_local/unix/CMakeLists.txt | 11 +- .../unix/config_files/CMakeLists.txt | 21 +- adm_local/unix/make_common_starter.am | 104 ---- bin/CMakeLists.txt | 20 + bin/Makefile.am | 31 -- bin/VERSION.in | 4 +- build_cmake.bat | 20 - build_configure | 124 ----- clean_configure | 31 -- configure.ac | 448 ------------------ adm_local/Makefile.am => doc/CMakeLists.txt | 14 +- doc/salome/CMakeLists.txt | 25 + doc/salome/examples/CMakeLists.txt | 3 +- doc/salome/gui/BLSURFPLUGIN/CMakeLists.txt | 33 +- doc/salome/gui/BLSURFPLUGIN/Makefile.am | 72 --- doc/salome/gui/BLSURFPLUGIN/doxyfile.in | 16 +- doc/salome/gui/BLSURFPLUGIN/doxyfile_py.in | 10 +- .../gui/BLSURFPLUGIN/static/header.html.in | 2 +- .../gui/BLSURFPLUGIN/static/header_py.html.in | 2 +- doc/salome/gui/CMakeLists.txt | 23 + .../tui/CMakeLists.txt} | 22 +- doc/salome/tui/Makefile.am | 52 -- doc/salome/tui/doxyfile.in | 20 +- doc/salome/tui/static/header.html.in | 2 +- doc/salome/Makefile.am => idl/CMakeLists.txt | 43 +- idl/Makefile.am | 124 ----- resources/{Makefile.am => CMakeLists.txt} | 39 +- src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx | 6 - src/BLSURFPlugin/CMakeLists.txt | 112 +++++ src/BLSURFPlugin/Makefile.am | 78 --- src/{Makefile.am => CMakeLists.txt} | 31 +- src/GUI/BLSURFPluginGUI_HypothesisCreator.h | 2 +- src/GUI/CMakeLists.txt | 121 +++++ src/GUI/Makefile.am | 86 ---- tests/CMakeLists.txt | 38 ++ tests/Makefile.am | 42 -- 47 files changed, 926 insertions(+), 1525 deletions(-) create mode 100755 CMakeLists.txt delete mode 100644 Makefile.am create mode 100644 SalomeBLSURFPLUGINConfig.cmake.in rename adm_local/{unix/Makefile.am => CMakeLists.txt} (76%) mode change 100644 => 100755 create mode 100755 adm_local/cmake_files/CMakeLists.txt delete mode 100644 adm_local/cmake_files/FindBLSURF.cmake rename adm_local/{unix/config_files/Makefile.am => cmake_files/FindBLSURFPLUGIN.cmake} (67%) rename adm_local/cmake_files/{FindCADSURF.cmake => FindMESHGEMS.cmake} (50%) rename doc/salome/gui/Makefile.am => adm_local/cmake_files/FindSalomeBLSURFPLUGIN.cmake (66%) rename adm_local/cmake_files/{Makefile.am => FindSalomeMESHGEMS.cmake} (79%) rename build_cmake => adm_local/unix/CMakeLists.txt (74%) rename doc/salome/examples/Makefile.am => adm_local/unix/config_files/CMakeLists.txt (74%) mode change 100644 => 100755 delete mode 100644 adm_local/unix/make_common_starter.am create mode 100755 bin/CMakeLists.txt delete mode 100644 bin/Makefile.am delete mode 100644 build_cmake.bat delete mode 100755 build_configure delete mode 100755 clean_configure delete mode 100644 configure.ac rename adm_local/Makefile.am => doc/CMakeLists.txt (76%) mode change 100644 => 100755 create mode 100755 doc/salome/CMakeLists.txt delete mode 100644 doc/salome/gui/BLSURFPLUGIN/Makefile.am create mode 100755 doc/salome/gui/CMakeLists.txt rename doc/{Makefile.am => salome/tui/CMakeLists.txt} (53%) mode change 100644 => 100755 delete mode 100644 doc/salome/tui/Makefile.am rename doc/salome/Makefile.am => idl/CMakeLists.txt (50%) mode change 100644 => 100755 delete mode 100644 idl/Makefile.am rename resources/{Makefile.am => CMakeLists.txt} (57%) mode change 100644 => 100755 create mode 100644 src/BLSURFPlugin/CMakeLists.txt delete mode 100644 src/BLSURFPlugin/Makefile.am rename src/{Makefile.am => CMakeLists.txt} (69%) mode change 100644 => 100755 create mode 100644 src/GUI/CMakeLists.txt delete mode 100644 src/GUI/Makefile.am create mode 100755 tests/CMakeLists.txt delete mode 100644 tests/Makefile.am diff --git a/BLSURFPLUGIN_version.h.in b/BLSURFPLUGIN_version.h.in index e43f1cb..2e824eb 100644 --- a/BLSURFPLUGIN_version.h.in +++ b/BLSURFPLUGIN_version.h.in @@ -25,12 +25,22 @@ #if !defined(__BLSURFPLUGIN_VERSION_H__) #define __BLSURFPLUGIN_VERSION_H__ -/* - BLSURFPLUGIN_VERSION is (major << 16) + (minor << 8) + patch. +/*! + Specify version of SALOME BLSURFPLUGIN module, as follows + + BLSURFPLUGIN_VERSION_MAJOR : (integer) number identifying major version + BLSURFPLUGIN_VERSION_MINOR : (integer) number identifying minor version + BLSURFPLUGIN_VERSION_MAINTENANCE : (integer) number identifying maintenance version + BLSURFPLUGIN_VERSION_STR : (string) complete version number "major.minor.maintenance" + BLSURFPLUGIN_VERSION : (hex) complete version number (major << 16) + (minor << 8) + maintenance + BLSURFPLUGIN_DEVELOPMENT : (integer) indicates development version when set to 1 */ -#define BLSURFPLUGIN_VERSION_STR "@VERSION@" -#define BLSURFPLUGIN_VERSION @XVERSION@ -#define BLSURFPLUGIN_DEVELOPMENT @VERSION_DEV@ +#define BLSURFPLUGIN_VERSION_MAJOR @SALOMEBLSURFPLUGIN_MAJOR_VERSION@ +#define BLSURFPLUGIN_VERSION_MINOR @SALOMEBLSURFPLUGIN_MINOR_VERSION@ +#define BLSURFPLUGIN_VERSION_MAINTENANCE @SALOMEBLSURFPLUGIN_PATCH_VERSION@ +#define BLSURFPLUGIN_VERSION_STR "@SALOMEBLSURFPLUGIN_VERSION@" +#define BLSURFPLUGIN_VERSION @SALOMEBLSURFPLUGIN_XVERSION@ +#define BLSURFPLUGIN_DEVELOPMENT @SALOMEBLSURFPLUGIN_VERSION_DEV@ #endif // __BLSURFPLUGIN_VERSION_H__ diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100755 index 0000000..0d0a5e4 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,247 @@ +# 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) +PROJECT(SalomeBLSURFPLUGIN 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) +SET(${PROJECT_NAME_UC}_MINOR_VERSION 2) +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) +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) + MESSAGE(FATAL_ERROR "BLSURFPLUGIN module can't be built in Light mode (without CORBA)") +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 +# (some options have already been defined in KERNEL) +# ============ +OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ${SALOME_BUILD_TESTS}) +OPTION(SALOME_BUILD_DOC "Generate SALOME BLSURFPLUGIN documentation" ${SALOME_BUILD_DOC}) + +# Advanced options: +OPTION(SALOME_BUILD_GUI "Enable BLSURFPLUGIN GUI" ON) +MARK_AS_ADVANCED(SALOME_BUILD_GUI) + +## +## From KERNEL: +## +# Python +FIND_PACKAGE(SalomePython REQUIRED) +# Boost +FIND_PACKAGE(SalomeBoost REQUIRED) +# CORBA +FIND_PACKAGE(SalomeOmniORB REQUIRED) +FIND_PACKAGE(SalomeOmniORBPy REQUIRED) + +# Other KERNEL optionals: +IF(SALOME_BUILD_DOC) + FIND_PACKAGE(SalomeDoxygen) + SALOME_LOG_OPTIONAL_PACKAGE(Doxygen SALOME_BUILD_DOC) +ENDIF() + +# Find GUI (optional) +# =========== +IF(SALOME_BUILD_GUI) + 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) + ELSE(EXISTS ${GUI_ROOT_DIR}) + MESSAGE(FATAL_ERROR "We absolutely need a Salome GUI, please define GUI_ROOT_DIR") + ENDIF(EXISTS ${GUI_ROOT_DIR}) + SALOME_LOG_OPTIONAL_PACKAGE(SalomeGUI SALOME_BUILD_GUI) +ENDIF(SALOME_BUILD_GUI) + +## +## From GUI: +## +IF(SALOME_BUILD_GUI) + # Qt4 + FIND_PACKAGE(SalomeQt4 REQUIRED COMPONENTS QtCore QtGui) +ENDIF(SALOME_BUILD_GUI) + +# OCCT +FIND_PACKAGE(SalomeCAS REQUIRED) +# VTK +FIND_PACKAGE(SalomeVTK 6.0 REQUIRED) + +# Find GEOM +# =========== +SET(GEOM_ROOT_DIR $ENV{GEOM_ROOT_DIR} CACHE PATH "Path to the Salome GEOM") +IF(EXISTS ${GEOM_ROOT_DIR}) + LIST(APPEND CMAKE_MODULE_PATH "${GEOM_ROOT_DIR}/adm_local/cmake_files") + FIND_PACKAGE(SalomeGEOM REQUIRED) +ELSE(EXISTS ${GEOM_ROOT_DIR}) + MESSAGE(FATAL_ERROR "We absolutely need a Salome GEOM, please define GEOM_ROOT_DIR") +ENDIF(EXISTS ${GEOM_ROOT_DIR}) + +# Find SMESH +# =========== +SET(SMESH_ROOT_DIR $ENV{SMESH_ROOT_DIR} CACHE PATH "Path to the Salome SMESH") +IF(EXISTS ${SMESH_ROOT_DIR}) + LIST(APPEND CMAKE_MODULE_PATH "${SMESH_ROOT_DIR}/adm_local/cmake_files") + FIND_PACKAGE(SalomeSMESH REQUIRED) +ELSE(EXISTS ${SMESH_ROOT_DIR}) + MESSAGE(FATAL_ERROR "We absolutely need a Salome SMESH, please define SMESH_ROOT_DIR") +ENDIF(EXISTS ${SMESH_ROOT_DIR}) + +## +## BLSURFPLUGIN specifics +## +FIND_PACKAGE(SalomeMESHGEMS REQUIRED) + +# Detection summary: +SALOME_PACKAGE_REPORT_AND_CHECK() + +# 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_APPLISKEL_SCRIPTS "${SALOME_INSTALL_APPLISKEL_SCRIPTS}" CACHE PATH + "Install path: SALOME application skeleton - scripts") +SET(SALOME_INSTALL_APPLISKEL_PYTHON "${SALOME_INSTALL_APPLISKEL_PYTHON}" CACHE PATH + "Install path: SALOME application skeleton - Python") +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_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 BLSURFPLUGIN: +SET(SALOME_BLSURFPLUGIN_INSTALL_RES_DATA "${SALOME_INSTALL_RES}/blsurfplugin" CACHE PATH + "Install path: SALOME BLSURFPLUGIN specific data") +SET(SALOME_BLSURFPLUGIN_INSTALL_TESTS ${SALOME_INSTALL_BINS}) + +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_LOCAL SALOME_INSTALL_RES) +MARK_AS_ADVANCED(SALOME_INSTALL_PYTHON SALOME_INSTALL_PYTHON_SHARED) +MARK_AS_ADVANCED(SALOME_INSTALL_AMCONFIG_LOCAL SALOME_INSTALL_DOC) +MARK_AS_ADVANCED(SALOME_BLSURFPLUGIN_INSTALL_RES_DATA SALOME_BLSURFPLUGIN_INSTALL_TESTS) + +# Sources +# ======== + +ADD_SUBDIRECTORY(idl) +ADD_SUBDIRECTORY(adm_local) +ADD_SUBDIRECTORY(resources) +ADD_SUBDIRECTORY(src) +ADD_SUBDIRECTORY(bin) +IF(SALOME_BUILD_DOC) + ADD_SUBDIRECTORY(doc) +ENDIF(SALOME_BUILD_DOC) +IF(SALOME_BUILD_TESTS) + ADD_SUBDIRECTORY(tests) +ENDIF(SALOME_BUILD_TESTS) + +# Header configuration +# ==================== +SALOME_XVERSION(${PROJECT_NAME}) +SALOME_CONFIGURE_FILE(BLSURFPLUGIN_version.h.in BLSURFPLUGIN_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 + BLSURFEngine SalomeIDLBLSURFPLUGIN +) + +IF(SALOME_BUILD_GUI) + LIST(APPEND _${PROJECT_NAME}_exposed_targets + BLSURFPluginGUI + ) +ENDIF(SALOME_BUILD_GUI) + +# 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: +SET(SMESH_ROOT_DIR "${SMESH_ROOT_DIR}") +SET(MESHGEMS_ROOT_DIR "${BLSURF_ROOT_DIR}") + +SET(CONF_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}/include" "${PROJECT_BINARY_DIR}/include") +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 + SMESH_ROOT_DIR MESHGEMS_ROOT_DIR) + +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" + DESTINATION "${SALOME_INSTALL_CMAKE_LOCAL}") + +# Install the export set for use with the install-tree +INSTALL(EXPORT ${PROJECT_NAME}TargetGroup DESTINATION "${SALOME_INSTALL_CMAKE_LOCAL}" + FILE ${PROJECT_NAME}Targets.cmake) diff --git a/Makefile.am b/Makefile.am deleted file mode 100644 index e88f1cf..0000000 --- a/Makefile.am +++ /dev/null @@ -1,64 +0,0 @@ -# Copyright (C) 2007-2013 CEA/DEN, EDF R&D -# -# 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 -# - -# --- -# File : Makefile.am -# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com) -# --- -# -include $(top_srcdir)/adm_local/unix/make_common_starter.am - -if BLSURFPLUGIN_ENABLE_GUI - ACLOCAL_AMFLAGS = -I adm_local/unix/config_files \ - -I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files \ - -I ${GUI_ROOT_DIR}/adm_local/unix/config_files \ - -I ${GEOM_ROOT_DIR}/adm_local/unix/config_files \ - -I ${SMESH_ROOT_DIR}/adm_local/unix/config_files -else !BLSURFPLUGIN_ENABLE_GUI - ACLOCAL_AMFLAGS = -I adm_local/unix/config_files \ - -I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files \ - -I ${GEOM_ROOT_DIR}/adm_local/unix/config_files \ - -I ${SMESH_ROOT_DIR}/adm_local/unix/config_files -endif - -SUBDIRS = idl adm_local resources src bin doc tests - -DIST_SUBDIRS = idl adm_local resources src bin doc tests - -DISTCLEANFILES = a.out aclocal.m4 configure local-install.sh hack_libtool - -salomeinclude_DATA = BLSURFPLUGIN_version.h - -EXTRA_DIST += \ - build_configure \ - clean_configure \ - build_cmake \ - build_cmake.bat - -dist-hook: - rm -rf `find $(distdir) -name CVS` - -usr_docs: - (cd doc && $(MAKE) $(AM_MAKEFLAGS) usr_docs) - -docs: usr_docs - -dev_docs: - (cd doc && $(MAKE) $(AM_MAKEFLAGS) dev_docs) - diff --git a/SalomeBLSURFPLUGINConfig.cmake.in b/SalomeBLSURFPLUGINConfig.cmake.in new file mode 100644 index 0000000..90c5e29 --- /dev/null +++ b/SalomeBLSURFPLUGINConfig.cmake.in @@ -0,0 +1,103 @@ +# - Config file for the @PROJECT_NAME@ package +# It defines the following variables. +# Specific to the pacakge @PROJECT_NAME@ itself: +# @PROJECT_NAME_UC@_ROOT_DIR_EXP - the root path of the installation providing this CMake file +# + +############################################################### +# Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE +# +# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +# +# 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 +############################################################### + +### Initialisation performed by CONFIGURE_PACKAGE_CONFIG_FILE: +@PACKAGE_INIT@ + +# Load the dependencies for the libraries of @PROJECT_NAME@ +# (contains definitions for IMPORTED targets). This is only +# imported if we are not built as a subproject (in this case targets are already there) +IF(NOT TARGET BLSURFEngine AND NOT @PROJECT_NAME@_BINARY_DIR) + INCLUDE("@PACKAGE_SALOME_INSTALL_CMAKE_LOCAL@/@PROJECT_NAME@Targets.cmake") +ENDIF() + +# Package root dir: +SET_AND_CHECK(BLSURFPLUGIN_ROOT_DIR_EXP "@PACKAGE_CMAKE_INSTALL_PREFIX@") + +# Include directories +SET_AND_CHECK(BLSURFPLUGIN_INCLUDE_DIRS "${BLSURFPLUGIN_ROOT_DIR_EXP}/@SALOME_INSTALL_HEADERS@") + +#### Now the specificities + +# Options exported by the package: +SET(SALOME_BLSURFPLUGIN_BUILD_TESTS @SALOME_BUILD_TESTS@) +SET(SALOME_BLSURFPLUGIN_BUILD_DOC @SALOME_BUILD_DOC@) + +# Advanced options +SET(SALOME_BLSURFPLUGIN_BUILD_GUI @SALOME_BUILD_GUI@) + +# Level 1 prerequisites: +SET_AND_CHECK(SMESH_ROOT_DIR_EXP "@PACKAGE_SMESH_ROOT_DIR@") + +# For all prerequisites, load the corresponding targets if the package was used +# in CONFIG mode. This ensures dependent projects link correctly +# without having to set LD_LIBRARY_PATH: +SET(_PREREQ MESHGEMS) +SET(_PREREQ_CONFIG_DIR "@MESHGEMS_DIR@") +LIST(LENGTH _PREREQ_CONFIG_DIR _list_len) +# Another CMake stupidity - FOREACH(... RANGE r) generates r+1 numbers ... +MATH(EXPR _range "${_list_len}-1") +FOREACH(_p RANGE ${_range}) + LIST(GET _PREREQ ${_p} _pkg ) + LIST(GET _PREREQ_CONFIG_DIR ${_p} _pkg_dir) + IF(_pkg_dir) + MESSAGE(STATUS "===> Reloading targets from ${_pkg} ...") + FIND_PACKAGE(${_pkg} REQUIRED NO_MODULE + PATHS "${_pkg_dir}" + NO_DEFAULT_PATH) + ENDIF() +ENDFOREACH() + +# Installation directories +SET(SALOME_INSTALL_BINS "@SALOME_INSTALL_BINS@") +SET(SALOME_INSTALL_LIBS "@SALOME_INSTALL_LIBS@") +SET(SALOME_INSTALL_IDLS "@SALOME_INSTALL_IDLS@") +SET(SALOME_INSTALL_HEADERS "@SALOME_INSTALL_HEADERS@") +SET(SALOME_INSTALL_SCRIPT_SCRIPTS "@SALOME_INSTALL_SCRIPT_SCRIPTS@") +SET(SALOME_INSTALL_SCRIPT_DATA "@SALOME_INSTALL_SCRIPT_DATA@") +SET(SALOME_INSTALL_SCRIPT_PYTHON "@SALOME_INSTALL_SCRIPT_PYTHON@") +SET(SALOME_INSTALL_APPLISKEL_SCRIPTS "@SALOME_INSTALL_APPLISKEL_SCRIPTS@") +SET(SALOME_INSTALL_APPLISKEL_PYTHON "@SALOME_INSTALL_APPLISKEL_PYTHON@") +SET(SALOME_INSTALL_CMAKE_LOCAL "@SALOME_INSTALL_CMAKE_LOCAL@") +SET(SALOME_INSTALL_PYTHON "@SALOME_INSTALL_PYTHON@") +SET(SALOME_INSTALL_PYTHON_SHARED "@SALOME_INSTALL_PYTHON_SHARED@") +SET(SALOME_INSTALL_RES "@SALOME_INSTALL_RES@") +SET(SALOME_INSTALL_DOC "@SALOME_INSTALL_DOC@") +SET(SALOME_INSTALL_AMCONFIG_LOCAL "@SALOME_INSTALL_AMCONFIG_LOCAL@") + +# Include SMESH targets if they were not already loaded: +IF(NOT (TARGET SMESHEngine)) + INCLUDE("${SMESH_ROOT_DIR_EXP}/${SALOME_INSTALL_CMAKE}/SalomeSMESHTargets.cmake") +ENDIF() + +# Exposed BLSURFPLUGIN targets: +SET(BLSURFPLUGIN_BLSURFEngine BLSURFEngine) +SET(BLSURFPLUGIN_BLSURFPluginGUI BLSURFPluginGUI) +SET(BLSURFPLUGIN_SalomeIDLBLSURFPLUGIN SalomeIDLBLSURFPLUGIN) \ No newline at end of file diff --git a/adm_local/unix/Makefile.am b/adm_local/CMakeLists.txt old mode 100644 new mode 100755 similarity index 76% rename from adm_local/unix/Makefile.am rename to adm_local/CMakeLists.txt index dd764d0..84d97c2 --- a/adm_local/unix/Makefile.am +++ b/adm_local/CMakeLists.txt @@ -1,4 +1,7 @@ -# Copyright (C) 2007-2013 CEA/DEN, EDF R&D +# Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE +# +# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -17,11 +20,5 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -# --- -# File : Makefile.am -# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com) -# --- -# -include $(top_srcdir)/adm_local/unix/make_common_starter.am - -SUBDIRS = config_files +ADD_SUBDIRECTORY(unix) +ADD_SUBDIRECTORY(cmake_files) diff --git a/adm_local/cmake_files/CMakeLists.txt b/adm_local/cmake_files/CMakeLists.txt new file mode 100755 index 0000000..e022885 --- /dev/null +++ b/adm_local/cmake_files/CMakeLists.txt @@ -0,0 +1,31 @@ +# 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 +# + +# =============================================================== +# Files to be installed +# =============================================================== + +# These files are data, module or lib files +SET(_adm_data + FindMESHGEMS.cmake + FindBLSURFPLUGIN.cmake + FindSalomeMESHGEMS.cmake + FindSalomeBLSURFPLUGIN.cmake +) +INSTALL(FILES ${_adm_data} DESTINATION ${SALOME_INSTALL_CMAKE_LOCAL}) diff --git a/adm_local/cmake_files/FindBLSURF.cmake b/adm_local/cmake_files/FindBLSURF.cmake deleted file mode 100644 index 81537d2..0000000 --- a/adm_local/cmake_files/FindBLSURF.cmake +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright (C) 2007-2013 CEA/DEN, EDF R&D -# -# 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(BLSURFHOME $ENV{BLSURFHOME}) -FIND_PATH(BLSURF_INCLUDES_DIR distene/blsurf.h ${BLSURFHOME}/include) -SET(BLSURF_INCLUDES) -SET(BLSURF_INCLUDES ${BLSURF_INCLUDES} -I${BLSURF_INCLUDES_DIR}) - -SET(BLSURF_LIBS_PATHS) -SET(BLSURF_LIBS_PATHS ${BLSURF_LIBS_PATHS} ${BLSURFHOME}/lib) -IF(WINDOWS) - SET(BLSURF_LIBS_PATHS ${BLSURF_LIBS_PATHS} ${BLSURFHOME}/lib/WinXP_VC9) -ELSE(WINDOWS) - IF(CMAKE_SIZEOF_VOID_P STREQUAL 8) - SET(BLSURF_LIBS_PATHS ${BLSURF_LIBS_PATHS} ${BLSURFHOME}/lib/Linux_64) - ELSE() - SET(BLSURF_LIBS_PATHS ${BLSURF_LIBS_PATHS} ${BLSURFHOME}/lib/Linux) - ENDIF() -ENDIF(WINDOWS) - -FIND_LIBRARY(BLSurf BLSurf PATHS ${BLSURF_LIBS_PATHS}) -FIND_LIBRARY(PreCAD PreCAD PATHS ${BLSURF_LIBS_PATHS}) -FIND_LIBRARY(distene distene PATHS ${BLSURF_LIBS_PATHS}) - -SET(BLSURF_LIBS) -SET(BLSURF_LIBS ${BLSURF_LIBS} ${BLSurf}) -SET(BLSURF_LIBS ${BLSURF_LIBS} ${PreCAD}) -IF(distene) - SET(BLSURF_LIBS ${BLSURF_LIBS} ${distene}) -ENDIF(distene) diff --git a/adm_local/unix/config_files/Makefile.am b/adm_local/cmake_files/FindBLSURFPLUGIN.cmake similarity index 67% rename from adm_local/unix/config_files/Makefile.am rename to adm_local/cmake_files/FindBLSURFPLUGIN.cmake index b0bf67c..4fbec9c 100644 --- a/adm_local/unix/config_files/Makefile.am +++ b/adm_local/cmake_files/FindBLSURFPLUGIN.cmake @@ -1,4 +1,4 @@ -# Copyright (C) 2007-2013 CEA/DEN, EDF R&D +# 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 @@ -16,14 +16,10 @@ # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # - -# --- -# File : Makefile.am -# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com) -# --- # -include $(top_srcdir)/adm_local/unix/make_common_starter.am -dist_admlocalm4_DATA = \ - check_BLSURF.m4 \ - check_BLSURFPLUGIN.m4 +SET(BLSURFPLUGIN_CXXFLAGS -I${BLSURFPLUGIN_ROOT_DIR}/include/salome) + +FIND_LIBRARY(BLSURFEngine BLSURFEngine ${BLSURFPLUGIN_ROOT_DIR}/lib/salome) +FIND_LIBRARY(BLSURFPluginGUI BLSURFPluginGUI ${BLSURFPLUGIN_ROOT_DIR}/lib/salome) +FIND_LIBRARY(SalomeIDLBLSURFPLUGIN SalomeIDLBLSURFPLUGIN ${BLSURFPLUGIN_ROOT_DIR}/lib/salome) diff --git a/adm_local/cmake_files/FindCADSURF.cmake b/adm_local/cmake_files/FindMESHGEMS.cmake similarity index 50% rename from adm_local/cmake_files/FindCADSURF.cmake rename to adm_local/cmake_files/FindMESHGEMS.cmake index cac4ecb..62ddf8b 100644 --- a/adm_local/cmake_files/FindCADSURF.cmake +++ b/adm_local/cmake_files/FindMESHGEMS.cmake @@ -1,3 +1,9 @@ +# - Find MESHGEMS +# Sets the following variables: +# MESHGEMS_INCLUDE_DIRS - path to the MESHGEMS include directory +# MESHGEMS_LIBRARIES - path to the MESHGEMS libraries to be linked against +# + # Copyright (C) 2007-2013 CEA/DEN, EDF R&D # # This library is free software; you can redistribute it and/or @@ -17,32 +23,40 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -SET(MESHGEMSHOME $ENV{MESHGEMSHOME}) -FIND_PATH(CADSURF_INCLUDES_DIR meshgems/cadsurf.h ${MESHGEMSHOME}/include) -SET(MESHGEMS_CADSURF_INCLUDES) -SET(MESHGEMS_CADSURF_INCLUDES ${MESHGEMS_CADSURF_INCLUDES} -I${CADSURF_INCLUDES_DIR}) +# ------ + +MESSAGE(STATUS "Check for MESHGEMS ...") + +# ------ + +SET(MESHGEMS_ROOT_DIR $ENV{MESHGEMS_ROOT_DIR}) + +FIND_PATH(MESHGEMS_INCLUDE_DIRS meshgems/cadsurf.h ${MESHGEMS_ROOT_DIR}/include) SET(CADSURF_LIBS_PATHS) -SET(CADSURF_LIBS_PATHS ${CADSURF_LIBS_PATHS} ${MESHGEMSHOME}/lib) +SET(CADSURF_LIBS_PATHS ${CADSURF_LIBS_PATHS} ${MESHGEMS_ROOT_DIR}/lib) SET(suff) -IF(CMAKE_SIZEOF_VOID_P STREQUAL 8) +IF(MACHINE_IS_64) SET(suff "_64") -ENDIF() +ENDIF(MACHINE_IS_64) -IF(WINDOWS) - SET(CADSURF_LIBS_PATHS ${CADSURF_LIBS_PATHS} ${MESHGEMSHOME}/lib/WinXP${suff}_VC9) -ELSE(WINDOWS) - SET(CADSURF_LIBS_PATHS ${CADSURF_LIBS_PATHS} ${MESHGEMSHOME}/lib/Linux${suff}) -ENDIF(WINDOWS) +IF(WIN32) + SET(CADSURF_LIBS_PATHS ${CADSURF_LIBS_PATHS} ${MESHGEMS_ROOT_DIR}/lib/WinXP${suff}_VC9) +ELSE(WIN32) + SET(CADSURF_LIBS_PATHS ${CADSURF_LIBS_PATHS} ${MESHGEMS_ROOT_DIR}/lib/Linux${suff}) +ENDIF(WIN32) FIND_LIBRARY(mg-cadsurf mg-cadsurf PATHS ${CADSURF_LIBS_PATHS}) FIND_LIBRARY(mg-precad mg-precad PATHS ${CADSURF_LIBS_PATHS}) FIND_LIBRARY(meshgems meshgems PATHS ${CADSURF_LIBS_PATHS}) -SET(MESHGEMS_CADSURF_LIBS) -SET(MESHGEMS_CADSURF_LIBS ${MESHGEMS_CADSURF_LIBS} ${mg-cadsurf}) -SET(MESHGEMS_CADSURF_LIBS ${MESHGEMS_CADSURF_LIBS} ${mg-precad}) +SET(MESHGEMS_LIBRARIES) +SET(MESHGEMS_LIBRARIES ${MESHGEMS_LIBRARIES} ${mg-cadsurf}) +SET(MESHGEMS_LIBRARIES ${MESHGEMS_LIBRARIES} ${mg-precad}) IF(meshgems) - SET(MESHGEMS_CADSURF_LIBS ${MESHGEMS_CADSURF_LIBS} ${meshgems}) + SET(MESHGEMS_LIBRARIES ${MESHGEMS_LIBRARIES} ${meshgems}) ENDIF(meshgems) + +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(MESHGEMS REQUIRED_VARS MESHGEMS_INCLUDE_DIRS MESHGEMS_LIBRARIES) diff --git a/doc/salome/gui/Makefile.am b/adm_local/cmake_files/FindSalomeBLSURFPLUGIN.cmake similarity index 66% rename from doc/salome/gui/Makefile.am rename to adm_local/cmake_files/FindSalomeBLSURFPLUGIN.cmake index eec3253..f84c5a2 100644 --- a/doc/salome/gui/Makefile.am +++ b/adm_local/cmake_files/FindSalomeBLSURFPLUGIN.cmake @@ -1,4 +1,4 @@ -# Copyright (C) 2007-2013 CEA/DEN, EDF R&D +# 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 @@ -16,16 +16,16 @@ # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # - -# File : Makefile.in -# Author : Vasily Rusyaev (Open Cascade NN) -# Module : doc # -include $(top_srcdir)/adm_local/unix/make_common_starter.am -SUBDIRS = BLSURFPLUGIN +IF(NOT SalomeBLSURFPLUGIN_FIND_QUIETLY) + MESSAGE(STATUS "Looking for Salome BLSURFPLUGIN ...") +ENDIF() + +SET(CMAKE_PREFIX_PATH "${BLSURFPLUGIN_ROOT_DIR}") -usr_docs: - (cd BLSURFPLUGIN && $(MAKE) $(AM_MAKEFLAGS) usr_docs) +SALOME_FIND_PACKAGE(SalomeBLSURFPLUGIN SalomeBLSURFPLUGIN CONFIG) -docs: usr_docs +IF(NOT SalomeBLSURFPLUGIN_FIND_QUIETLY) + MESSAGE(STATUS "Found Salome BLSURFPLUGIN: ${BLSURFPLUGIN_ROOT_DIR}") +ENDIF() diff --git a/adm_local/cmake_files/Makefile.am b/adm_local/cmake_files/FindSalomeMESHGEMS.cmake similarity index 79% rename from adm_local/cmake_files/Makefile.am rename to adm_local/cmake_files/FindSalomeMESHGEMS.cmake index 7540d4a..8f725ef 100644 --- a/adm_local/cmake_files/Makefile.am +++ b/adm_local/cmake_files/FindSalomeMESHGEMS.cmake @@ -1,4 +1,4 @@ -# Copyright (C) 2007-2013 CEA/DEN, EDF R&D +# Copyright (C) 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 @@ -17,10 +17,5 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -include $(top_srcdir)/adm_local/unix/make_common_starter.am - -admlocal_cmakedir = $(admlocaldir)/cmake_files - -dist_admlocal_cmake_DATA = \ -FindBLSURF.cmake - +SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(MESHGEMS MESHGEMS_INCLUDE_DIRS 1) +MARK_AS_ADVANCED(MESHGEMS_INCLUDE_DIRS MESHGEMS_LIBRARIES) diff --git a/build_cmake b/adm_local/unix/CMakeLists.txt similarity index 74% rename from build_cmake rename to adm_local/unix/CMakeLists.txt index 66dd1e8..2f895ae 100755 --- a/build_cmake +++ b/adm_local/unix/CMakeLists.txt @@ -1,5 +1,4 @@ -#!/bin/sh -# Copyright (C) 2007-2013 CEA/DEN, EDF R&D +# 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 @@ -18,10 +17,4 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -CURRENT_DIR=`pwd` -CONF_DIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"` -cd ${CONF_DIR} -python $KERNEL_ROOT_DIR/salome_adm/cmake_files/deprecated/am2cmake.py --blsurfplugin -status=$? -cd ${CURRENT_DIR} -exit $status +ADD_SUBDIRECTORY(config_files) diff --git a/doc/salome/examples/Makefile.am b/adm_local/unix/config_files/CMakeLists.txt old mode 100644 new mode 100755 similarity index 74% rename from doc/salome/examples/Makefile.am rename to adm_local/unix/config_files/CMakeLists.txt index fc32167..4cce28f --- a/doc/salome/examples/Makefile.am +++ b/adm_local/unix/config_files/CMakeLists.txt @@ -1,5 +1,8 @@ # Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE # +# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +# # 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 @@ -17,15 +20,9 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -# File : Makefile -# Author : Alexander KOVALEV (Open Cascade NN) -# Modified by : -# Module : doc -# -include $(top_srcdir)/adm_local/unix/make_common_starter.am - -pyexamplesdir = $(docdir)/examples/BLSURFPLUGIN - -pyexamples_SCRIPTS = blsurfdemo.py - -EXTRA_DIST += $(pyexamples_SCRIPTS) +SET(_m4_data + check_BLSURF.m4 + check_BLSURFPLUGIN.m4 +) + +INSTALL(FILES ${_m4_data} DESTINATION ${SALOME_INSTALL_AMCONFIG_LOCAL}/config_files) diff --git a/adm_local/unix/make_common_starter.am b/adm_local/unix/make_common_starter.am deleted file mode 100644 index 6a073bf..0000000 --- a/adm_local/unix/make_common_starter.am +++ /dev/null @@ -1,104 +0,0 @@ -# Copyright (C) 2007-2013 CEA/DEN, EDF R&D -# -# 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 -# - -# --- -# File : make_common_starter.am -# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com) -# --- -# ============================================================ -# The following is to avoid PACKAGE_... env variable -# redefinition compilation warnings -# ============================================================ -# -AM_CXXFLAGS = @KERNEL_CXXFLAGS@ -include SALOMEconfig.h -AM_CPPFLAGS = @KERNEL_CXXFLAGS@ -include SALOMEconfig.h - -# ============================================================ -# This file defines the common definitions used in several -# Makefile. This file must be included, if needed, by the file -# Makefile.am. -# ============================================================ -# Standard directory for installation -# -salomeincludedir = $(includedir)/salome -libdir = $(prefix)/lib@LIB_LOCATION_SUFFIX@/salome -bindir = $(prefix)/bin/salome -salomescriptdir = $(bindir) -salomepythondir = $(pythondir)/salome -salomepyexecdir = $(pyexecdir)/salome - -# Directory for installing idl files -salomeidldir = $(prefix)/idl/salome - -# Directory for installing resource files -salomeresdir = $(prefix)/share/salome/resources/@MODULE_NAME@ - -# Directories for installing admin files -admlocaldir = $(prefix)/adm_local -admlocalunixdir = $(admlocaldir)/unix -admlocalm4dir = $(admlocaldir)/unix/config_files - -# Shared modules installation directory -sharedpkgpythondir = $(salomepythondir)/shared_modules - -# Documentation directory -docdir = $(datadir)/doc/salome - -# common rules - -# ============================================================ -# Cmake files wildcard (to add then to the distribution) -# ============================================================ -CMAKEFILES = $(notdir $(wildcard $(srcdir)/CMakeLists.txt)) - -# meta object implementation files generation (moc) -%_moc.cxx: %.h - $(MOC) $< -o $@ - -# translation (*.qm) files generation (lrelease) -%.qm: %.ts - $(LRELEASE) $< -qm $@ - -# resource files generation (qrcc) -qrc_%.cxx: %.qrc - $(QRCC) $< -o $@ -name $(*F) - -# qt forms files generation (uic) -ui_%.h: %.ui - $(UIC) -o $@ $< - -# extra distributed files -EXTRA_DIST = $(MOC_FILES:%_moc.cxx=%.h) $(QRC_FILES:qrc_%.cxx=%.qrc) \ - $(UIC_FILES:ui_%.h=%.ui) $(nodist_salomeres_DATA:%.qm=%.ts) \ - $(CMAKEFILES) - -# customize clean operation -mostlyclean-local: - rm -f @builddir@/*_moc.cxx - rm -f @builddir@/*.qm - rm -f @builddir@/ui_*.h - rm -f @builddir@/qrc_*.cxx - -# tests -tests: unittest - -unittest: $(UNIT_TEST_PROG) - @if test "x$(UNIT_TEST_PROG)" != "x"; then \ - $(UNIT_TEST_PROG); \ - fi; diff --git a/bin/CMakeLists.txt b/bin/CMakeLists.txt new file mode 100755 index 0000000..d220062 --- /dev/null +++ b/bin/CMakeLists.txt @@ -0,0 +1,20 @@ +# 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 +# + +SALOME_CONFIGURE_FILE(VERSION.in VERSION INSTALL ${SALOME_INSTALL_BINS}) diff --git a/bin/Makefile.am b/bin/Makefile.am deleted file mode 100644 index 51604d5..0000000 --- a/bin/Makefile.am +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright (C) 2007-2013 CEA/DEN, EDF R&D -# -# 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 -# - -# --- -# File : Makefile.am -# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com) -# --- -# -include $(top_srcdir)/adm_local/unix/make_common_starter.am - -# non-distributed files -nodist_salomescript_DATA = VERSION - -# distributed files -dist_salomescript_SCRIPTS = diff --git a/bin/VERSION.in b/bin/VERSION.in index b5c7064..bab7e53 100755 --- a/bin/VERSION.in +++ b/bin/VERSION.in @@ -1,3 +1,3 @@ -[SALOME BLSURFPLUGIN] : @VERSION@ -[DEVELOPMENT] : @VERSION_DEV@ +[SALOME BLSURFPLUGIN] : @SALOMEBLSURFPLUGIN_VERSION@ +[DEVELOPMENT] : @SALOMEBLSURFPLUGIN_VERSION_DEV@ [DESCRIPTION] : DISTENE BLSurf meshing plug-in for SALOME Mesh module diff --git a/build_cmake.bat b/build_cmake.bat deleted file mode 100644 index 450067e..0000000 --- a/build_cmake.bat +++ /dev/null @@ -1,20 +0,0 @@ -@REM Copyright (C) 2007-2013 CEA/DEN, EDF R&D -@REM -@REM This library is free software; you can redistribute it and/or -@REM modify it under the terms of the GNU Lesser General Public -@REM License as published by the Free Software Foundation; either -@REM version 2.1 of the License. -@REM -@REM This library is distributed in the hope that it will be useful, -@REM but WITHOUT ANY WARRANTY; without even the implied warranty of -@REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -@REM Lesser General Public License for more details. -@REM -@REM You should have received a copy of the GNU Lesser General Public -@REM License along with this library; if not, write to the Free Software -@REM Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -@REM -@REM See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -@REM - -%PYTHONBIN% %KERNEL_ROOT_DIR%\salome_adm\cmake_files\deprecated\am2cmake.py --blsurfplugin diff --git a/build_configure b/build_configure deleted file mode 100755 index 9bd4016..0000000 --- a/build_configure +++ /dev/null @@ -1,124 +0,0 @@ -#!/bin/bash -# Copyright (C) 2007-2013 CEA/DEN, EDF R&D -# -# 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 -# - -# --- -# File : build_configure -# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com) -# --- -# -ORIG_DIR=`pwd` -CONF_DIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"` - -######################################################################## -# Test if the KERNEL_ROOT_DIR is set correctly - -if test ! -d "${KERNEL_ROOT_DIR}"; then - echo "failed : KERNEL_ROOT_DIR variable is not correct !" - exit -fi - -# Test if the KERNEL_SRC is set correctly - -#if test ! -d "${KERNEL_SRC}"; then -# echo "failed : KERNEL_SRC variable is not correct !" -# exit -#fi - -######################################################################## -# Test if the GEOM_ROOT_DIR is set correctly - -if test ! -d "${GEOM_ROOT_DIR}"; then - echo "failed : GEOM_ROOT_DIR variable is not correct !" - exit -fi - -######################################################################## -# Test if the SMESH_ROOT_DIR is set correctly - -if test ! -d "${SMESH_ROOT_DIR}"; then - echo "failed : SMESH_ROOT_DIR variable is not correct !" - exit -fi - -cd ${CONF_DIR} -ABS_CONF_DIR=`pwd` - -####################################################################### - -# ____________________________________________________________________ -# aclocal creates the aclocal.m4 file from the standard macro and the -# custom macro embedded in the directory adm_local/unix/config_files -# and KERNEL config_files directory. -# output: -# aclocal.m4 -# autom4te.cache (directory) -echo "======================================================= aclocal" - -if test -d "${GUI_ROOT_DIR}"; then - aclocal -I adm_local/unix/config_files \ - -I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files \ - -I ${GUI_ROOT_DIR}/adm_local/unix/config_files \ - -I ${GEOM_ROOT_DIR}/adm_local/unix/config_files \ - -I ${SMESH_ROOT_DIR}/adm_local/unix/config_files || exit 1 -else - aclocal -I adm_local/unix/config_files \ - -I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files \ - -I ${GEOM_ROOT_DIR}/adm_local/unix/config_files \ - -I ${SMESH_ROOT_DIR}/adm_local/unix/config_files || exit 1 -fi - -# ____________________________________________________________________ -# libtoolize creates some configuration files (ltmain.sh, -# config.guess and config.sub). It only depends on the libtool -# version. The files are created in the directory specified with the -# AC_CONFIG_AUX_DIR() tag (see configure.ac). -# output: -# adm_local/unix/config_files/config.guess -# adm_local/unix/config_files/config.sub -# adm_local/unix/config_files/ltmain.sh -echo "==================================================== libtoolize" - -libtoolize --force --copy --automake || exit 1 - -# ____________________________________________________________________ -# autoconf creates the configure script from the file configure.ac (or -# configure.in if configure.ac doesn't exist) -# output: -# configure -echo "====================================================== autoconf" - -autoconf - -# ____________________________________________________________________ -# automake creates some scripts used in building process -# (install-sh, missing, ...). It only depends on the automake -# version. The files are created in the directory specified with the -# AC_CONFIG_AUX_DIR() tag (see configure.ac). This step also -# creates the Makefile.in files from the Makefile.am files. -# output: -# adm_local/unix/config_files/compile -# adm_local/unix/config_files/depcomp -# adm_local/unix/config_files/install-sh -# adm_local/unix/config_files/missing -# adm_local/unix/config_files/py-compile -# Makefile.in (from Makefile.am) -echo "====================================================== automake" - -automake --copy --gnu --add-missing diff --git a/clean_configure b/clean_configure deleted file mode 100755 index f0d9f43..0000000 --- a/clean_configure +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash -# Copyright (C) 2007-2013 CEA/DEN, EDF R&D -# -# 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 -# - -# --- -# File : clean_configure -# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com) -# --- -# -rm -rf autom4te.cache aclocal.m4 configure make_config -find . -name "*~" -print -exec rm {} \; -find . -name "*.pyc" -print -exec rm {} \; -find . -name Makefile.in | xargs rm -f -( cd adm_local/unix/config_files && rm -f config.* depcomp install-sh l*.m4 ltmain.sh missing py-compile ) - diff --git a/configure.ac b/configure.ac deleted file mode 100644 index fd469b9..0000000 --- a/configure.ac +++ /dev/null @@ -1,448 +0,0 @@ -#!/bin/bash -# Copyright (C) 2007-2013 CEA/DEN, EDF R&D -# -# 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 -# - -# --- -# File : configure.ac -# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com) -# --- -# -AC_INIT([Salome2 Project BLSURFPLUGIN module], [7.2.0], [webmaster.salome@opencascade.com], [SalomeBLSURFPLUGIN]) -AC_CONFIG_AUX_DIR(adm_local/unix/config_files) -AC_CANONICAL_HOST -AC_CANONICAL_TARGET -AM_INIT_AUTOMAKE([-Wno-portability]) - -XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'` -AC_SUBST(XVERSION) -VERSION_DEV=0 -AC_SUBST(VERSION_DEV) - -# set up MODULE_NAME variable for dynamic construction of directories (resources, etc.) -MODULE_NAME=blsurfplugin -AC_SUBST(MODULE_NAME) - -dnl -dnl Initialize source and build root directories -dnl - -ROOT_BUILDDIR=`pwd` -ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"` -cd $ROOT_SRCDIR -ROOT_SRCDIR=`pwd` -cd $ROOT_BUILDDIR - -AC_SUBST(ROOT_SRCDIR) -AC_SUBST(ROOT_BUILDDIR) - -echo -echo Source root directory : $ROOT_SRCDIR -echo Build root directory : $ROOT_BUILDDIR -echo -echo - -if test -z "$AR"; then - AC_CHECK_PROGS(AR,ar xar,:,$PATH) -fi -AC_SUBST(AR) - -dnl Export the AR macro so that it will be placed in the libtool file -dnl correctly. -export AR - -echo -echo --------------------------------------------- -echo testing make -echo --------------------------------------------- -echo - -AC_PROG_MAKE_SET -AC_PROG_INSTALL -AC_LOCAL_INSTALL -dnl -dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques ! - -AC_ENABLE_DEBUG(yes) -AC_DISABLE_PRODUCTION - -echo --------------------------------------------- -echo testing libtool -echo --------------------------------------------- - -dnl first, we set static to no! -dnl if we want it, use --enable-static -AC_ENABLE_STATIC(no) - -AC_LIBTOOL_DLOPEN -AC_PROG_LIBTOOL - -dnl Fix up the INSTALL macro if it s a relative path. We want the -dnl full-path to the binary instead. -case "$INSTALL" in - *install-sh*) - INSTALL='\${KERNEL_ROOT_DIR}'/adm_local/unix/config_files/install-sh - ;; -esac - -echo -echo --------------------------------------------- -echo testing C/C++ -echo --------------------------------------------- -echo - -cc_ok=no -dnl inutil car libtool -dnl AC_PROG_CC -AC_PROG_CXX -AC_DEPEND_FLAG -# AC_CC_WARNINGS([ansi]) -cc_ok=yes - -echo -echo --------------------------------------------- -echo testing Fortran -echo --------------------------------------------- -echo - -fortran_ok=no -AC_PROG_F77 -AC_F77_LIBRARY_LDFLAGS -AC_PROG_FC -AC_FC_LIBRARY_LDFLAGS -if test "X$FC" != "X" ; then - fortran_ok=yes -fi - -dnl Library libdl : -AC_CHECK_LIB(dl,dlopen) - -dnl add library libm : -AC_CHECK_LIB(m,ceil) - -dnl -dnl Well we use sstream which is not in gcc pre-2.95.3 -dnl We must test if it exists. If not, add it in include ! -dnl - -AC_CXX_HAVE_SSTREAM - -echo -echo --------------------------------------------- -echo BOOST Library -echo --------------------------------------------- -echo - -CHECK_BOOST - -dnl -dnl --------------------------------------------- -dnl testing MPICH -dnl --------------------------------------------- -dnl - -dnl CHECK_MPICH - -echo -echo --------------------------------------------- -echo testing MPI -echo --------------------------------------------- -echo - -CHECK_MPI - -echo -echo --------------------------------------------- -echo testing LEX \& YACC -echo --------------------------------------------- -echo - -lex_yacc_ok=no -AC_PROG_YACC -AC_PROG_LEX -lex_yacc_ok=yes - -echo -echo --------------------------------------------- -echo testing python -echo --------------------------------------------- -echo - -CHECK_PYTHON - -AM_PATH_PYTHON(2.3) - -dnl echo -dnl echo --------------------------------------------- -dnl echo testing java -dnl echo --------------------------------------------- -dnl echo - -dnl CHECK_JAVA - -echo -echo --------------------------------------------- -echo testing swig -echo --------------------------------------------- -echo - -CHECK_SWIG - -echo -echo --------------------------------------------- -echo testing threads -echo --------------------------------------------- -echo - -ENABLE_PTHREADS - -echo -echo --------------------------------------------- -echo testing omniORB -echo --------------------------------------------- -echo - -CHECK_OMNIORB - -dnl echo -dnl echo --------------------------------------------- -dnl echo testing mico -dnl echo --------------------------------------------- -dnl echo - -dnl CHECK_MICO - -echo -echo --------------------------------------------- -echo default ORB : omniORB -echo --------------------------------------------- -echo - -DEFAULT_ORB=omniORB -CHECK_CORBA - -AC_SUBST_FILE(CORBA) -corba=make_$ORB -CORBA=adm_local/unix/$corba - -echo -echo --------------------------------------------- -echo Testing GUI -echo --------------------------------------------- -echo - -CHECK_GUI_MODULE - -gui_ok=no -if test "${SalomeGUI_need}" != "no" -a "${FullGUI_ok}" = "yes" ; then - gui_ok=yes -fi - -AM_CONDITIONAL(BLSURFPLUGIN_ENABLE_GUI, [test "${gui_ok}" = "yes"]) - -if test "${SalomeGUI_need}" == "yes"; then - if test "${FullGUI_ok}" != "yes"; then - AC_MSG_WARN(For configure BLSURFPLUGIN module necessary full GUI!) - fi -elif test "${SalomeGUI_need}" == "auto"; then - if test "${FullGUI_ok}" != "yes"; then - AC_MSG_WARN(Full GUI not found. Build will be done without GUI!) - fi -elif test "${SalomeGUI_need}" == "no"; then - echo Build without GUI option has been chosen -fi - -if test "${gui_ok}" = "yes"; then - echo - echo --------------------------------------------- - echo testing openGL - echo --------------------------------------------- - echo - - CHECK_OPENGL - - echo - echo --------------------------------------------- - echo testing QT - echo --------------------------------------------- - echo - - CHECK_QT -fi - -echo -echo --------------------------------------------- -echo testing VTK -echo --------------------------------------------- -echo - -CHECK_VTK - -echo -echo --------------------------------------------- -echo testing HDF5 -echo --------------------------------------------- -echo - -CHECK_HDF5 - -echo -echo --------------------------------------------- -echo Testing OpenCascade -echo --------------------------------------------- -echo - -CHECK_CAS - -echo -echo --------------------------------------------- -echo Testing html generators -echo --------------------------------------------- -echo - -CHECK_HTML_GENERATORS - -echo -echo --------------------------------------------- -echo Testing MeshGems-CADSurf -echo --------------------------------------------- -echo - -CHECK_MESHGEMS_CADSURF - -echo -echo --------------------------------------------- -echo Testing Kernel -echo --------------------------------------------- -echo - -CHECK_KERNEL - -echo -echo --------------------------------------------- -echo Testing Geom -echo --------------------------------------------- -echo - -CHECK_GEOM - -echo -echo --------------------------------------------- -echo Testing SMesh -echo --------------------------------------------- -echo - -CHECK_SMESH - -echo -echo --------------------------------------------- -echo Summary -echo --------------------------------------------- -echo - -#AM_CONDITIONAL( USE_GFORTRAN, [test "$F77" = "gfortran"]) - -echo Configure - -if test "${gui_ok}" = "yes"; then - variables="cc_ok boost_ok lex_yacc_ok python_ok swig_ok threads_ok OpenGL_ok qt_ok vtk_ok hdf5_ok omniORB_ok occ_ok doxygen_ok graphviz_ok Kernel_ok Geom_ok SMesh_ok gui_ok CADSURF_ok" -elif test "${SalomeGUI_need}" != "no"; then - variables="cc_ok boost_ok lex_yacc_ok python_ok swig_ok threads_ok vtk_ok hdf5_ok omniORB_ok occ_ok doxygen_ok graphviz_ok Kernel_ok Geom_ok SMesh_ok gui_ok CADSURF_ok" -else - variables="cc_ok boost_ok lex_yacc_ok python_ok swig_ok threads_ok vtk_ok hdf5_ok omniORB_ok occ_ok doxygen_ok graphviz_ok Kernel_ok Geom_ok SMesh_ok CADSURF_ok" -fi - -for var in $variables -do - printf " %10s : " `echo \$var | sed -e "s,_ok,,"` - eval echo \$$var -done - -echo -echo "Default ORB : $DEFAULT_ORB" -echo - -dnl We don t need to say when we re entering directories if we re using -dnl GNU make becuase make does it for us. -if test "X$GMAKE" = "Xyes"; then - AC_SUBST(SETX) SETX=":" -else - AC_SUBST(SETX) SETX="set -x" -fi - -dnl Build with SMESH cancel compute feature -AC_DEFINE(WITH_SMESH_CANCEL_COMPUTE) - -dnl copy shells and utilities contained in the bin directory -dnl excluding .in files (treated in AC-OUTPUT below) and CVS -dnl directory - -echo -echo --------------------------------------------- -echo generating Makefiles and configure files -echo --------------------------------------------- -echo - -#AC_OUTPUT_COMMANDS([ \ -# chmod +x ./bin/*; \ -# chmod +x ./bin/salome/*; -#]) - -AC_HACK_LIBTOOL -AC_CONFIG_COMMANDS([hack_libtool],[ -sed -i "s%^CC=\"\(.*\)\"%hack_libtool (){ \n\ - $(pwd)/hack_libtool \1 \"\$[@]\" \n\ -}\n\ -CC=\"hack_libtool\"%g" libtool -sed -i "s%\(\s*\)for searchdir in \$newlib_search_path \$lib_search_path \$sys_lib_search_path \$shlib_search_path; do%\1searchdirs=\"\$newlib_search_path \$lib_search_path \$sys_lib_search_path \$shlib_search_path\"\n\1for searchdir in \$searchdirs; do%g" libtool -sed -i "s%\(\s*\)searchdirs=\"\$newlib_search_path \$lib_search_path \(.*\)\"%\1searchdirs=\"\$newlib_search_path \$lib_search_path\"\n\1sss_beg=\"\"\n\1sss_end=\"\2\"%g" libtool -sed -i "s%\(\s*\)\(for searchdir in \$searchdirs; do\)%\1for sss in \$searchdirs; do\n\1 if ! test -d \$sss; then continue; fi\n\1 ssss=\$(cd \$sss; pwd)\n\1 if test \"\$ssss\" != \"\" \&\& test -d \$ssss; then\n\1 case \$ssss in\n\1 /usr/lib | /usr/lib64 ) ;;\n\1 * ) sss_beg=\"\$sss_beg \$ssss\" ;;\n\1 esac\n\1 fi\n\1done\n\1searchdirs=\"\$sss_beg \$sss_end\"\n\1\2%g" libtool -],[]) - -# This list is initiated using autoscan and must be updated manually -# when adding a new file .in to manage. When you execute -# autoscan, the Makefile list is generated in the output file configure.scan. -# This could be helpfull to update de configuration. -AC_OUTPUT([ \ - adm_local/Makefile \ - adm_local/unix/Makefile \ - adm_local/unix/config_files/Makefile \ - adm_local/cmake_files/Makefile \ - doc/Makefile \ - doc/salome/Makefile \ - doc/salome/examples/Makefile \ - doc/salome/gui/Makefile \ - doc/salome/gui/BLSURFPLUGIN/Makefile \ - doc/salome/gui/BLSURFPLUGIN/doxyfile \ - doc/salome/gui/BLSURFPLUGIN/doxyfile_py \ - doc/salome/gui/BLSURFPLUGIN/static/header.html \ - doc/salome/gui/BLSURFPLUGIN/static/header_py.html \ - doc/salome/tui/Makefile \ - doc/salome/tui/doxyfile \ - doc/salome/tui/static/header.html \ - bin/VERSION \ - bin/Makefile \ - idl/Makefile \ - resources/Makefile \ - src/Makefile \ - src/BLSURFPlugin/Makefile \ - src/GUI/Makefile \ - tests/Makefile \ - BLSURFPLUGIN_version.h \ - Makefile \ -]) diff --git a/adm_local/Makefile.am b/doc/CMakeLists.txt old mode 100644 new mode 100755 similarity index 76% rename from adm_local/Makefile.am rename to doc/CMakeLists.txt index 36e883d..cedf656 --- a/adm_local/Makefile.am +++ b/doc/CMakeLists.txt @@ -1,4 +1,7 @@ -# Copyright (C) 2007-2013 CEA/DEN, EDF R&D +# Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE +# +# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -17,11 +20,4 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -# --- -# File : Makefile.am -# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com) -# --- -# -include $(top_srcdir)/adm_local/unix/make_common_starter.am - -SUBDIRS = unix cmake_files +ADD_SUBDIRECTORY(salome) diff --git a/doc/salome/CMakeLists.txt b/doc/salome/CMakeLists.txt new file mode 100755 index 0000000..fe27945 --- /dev/null +++ b/doc/salome/CMakeLists.txt @@ -0,0 +1,25 @@ +# Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE +# +# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +# +# 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 +# + +ADD_SUBDIRECTORY(examples) +ADD_SUBDIRECTORY(gui) +ADD_SUBDIRECTORY(tui) \ No newline at end of file diff --git a/doc/salome/examples/CMakeLists.txt b/doc/salome/examples/CMakeLists.txt index 8938795..b76d800 100644 --- a/doc/salome/examples/CMakeLists.txt +++ b/doc/salome/examples/CMakeLists.txt @@ -17,6 +17,5 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -SET(docdir ${CMAKE_INSTALL_PREFIX}/share/doc/salome) FILE(GLOB files "${CMAKE_CURRENT_SOURCE_DIR}/*.py") -INSTALL(FILES ${files} DESTINATION ${docdir}/examples/BLSURFPLUGIN) +INSTALL(FILES ${files} DESTINATION ${SALOME_INSTALL_DOC}/examples/BLSURFPLUGIN) diff --git a/doc/salome/gui/BLSURFPLUGIN/CMakeLists.txt b/doc/salome/gui/BLSURFPLUGIN/CMakeLists.txt index 4b4e633..5b07b3c 100755 --- a/doc/salome/gui/BLSURFPLUGIN/CMakeLists.txt +++ b/doc/salome/gui/BLSURFPLUGIN/CMakeLists.txt @@ -19,23 +19,15 @@ INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/SalomeMacros.cmake) -SET(top_builddir ${CMAKE_BINARY_DIR}) -SET(top_srcdir ${CMAKE_SOURCE_DIR}) -SET(srcdir ${CMAKE_CURRENT_SOURCE_DIR}) -SET(builddir ${CMAKE_CURRENT_BINARY_DIR}) -SET(datadir ${CMAKE_INSTALL_PREFIX}/share) -SET(docdir ${datadir}/doc/salome) -SET(guidocdir ${docdir}/gui/BLSURFPLUGIN) - SALOME_CONFIGURE_FILE(doxyfile.in doxyfile) SALOME_CONFIGURE_FILE(doxyfile_py.in doxyfile_py) -SALOME_CONFIGURE_FILE(static/header.html.in ${builddir}/static/header.html) -SALOME_CONFIGURE_FILE(static/header_py.html.in ${builddir}/static/header_py.html) +SALOME_CONFIGURE_FILE(static/header.html.in ${CMAKE_CURRENT_BINARY_DIR}/static/header.html) +SALOME_CONFIGURE_FILE(static/header_py.html.in ${CMAKE_CURRENT_BINARY_DIR}/static/header_py.html) SET(DOC_SMESH_MeshersList BLSURFPlugin) SET(f1 "$(SMESH_ROOT_DIR)/bin/salome/collect_mesh_methods.py") SET(f "$ENV{KERNEL_ROOT_DIR}/bin/salome/prepare_generating_doc.py") -IF(WINDOWS) +IF(WIN32) STRING(REPLACE "/" "\\" f ${f}) STRING(REPLACE "/" "\\" f1 ${f1}) STRING(REPLACE "/" "\\" SCR "@SET PYTHONPATH=${OMNIORB_ROOT_USER}/lib/x86_win32\;%PYTHONPATH% @@ -54,7 +46,7 @@ IF(WINDOWS) ") SET(EXT "bat") SET(CALL_STR "call") -ELSE(WINDOWS) +ELSE(WIN32) SET(DOC_PYTHONPATH ${CMAKE_INSTALL_PREFIX}/bin/salome:${CMAKE_INSTALL_PREFIX}/lib/python${PYTHON_VERSION}/site-packages/salome:${SMESH_ROOT_DIR}/bin/salome:${SMESH_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome:${GEOM_ROOT_DIR}/bin/salome:${GEOM_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome:${KERNEL_ROOT_DIR}/bin/salome:${KERNEL_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome:${OMNIORB_ROOT_USER}/lib/python${PYTHON_VERSION}/site-packages:${OMNIORB_ROOT_USER}/lib64/python${PYTHON_VERSION}/site-packages) SET(DOC_LD_LIBRARY_PATH "${CMAKE_INSTALL_PREFIX}/lib/salome:${SMESH_ROOT_DIR}/lib/salome:${GEOM_ROOT_DIR}/lib/salome:${KERNEL_ROOT_DIR}/lib/salome") SET(SCR "export PYTHONPATH=${DOC_PYTHONPATH}:\${PYTHONPATH} @@ -63,18 +55,21 @@ ELSE(WINDOWS) ") SET(EXT "sh") SET(CALL_STR ".") -ENDIF(WINDOWS) +ENDIF(WIN32) FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/tmp_env.${EXT} "${SCR}") -ADD_CUSTOM_TARGET(usr_docs mkdir -p tmp +ADD_CUSTOM_TARGET(usr_docs ${CMAKE_COMMAND} -E make_directory tmp COMMAND ${PYTHON_EXECUTABLE} ${f} -o tmp/BLSURFPluginBuilder.py ${CMAKE_SOURCE_DIR}/src/BLSURFPlugin/BLSURFPluginBuilder.py - COMMAND ${PYTHON_EXECUTABLE} ${f} -o tmp/smesh_algorithm.py ${SMESH_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome/salome/smesh/smesh_algorithm.py + COMMAND ${PYTHON_EXECUTABLE} ${f} -o tmp/smesh_algorithm.py ${SMESH_ROOT_DIR}/${SALOME_INSTALL_PYTHON}/salome/smesh/smesh_algorithm.py COMMAND ${CALL_STR} ${CMAKE_CURRENT_BINARY_DIR}/tmp_env.${EXT} && ${PYTHON_EXECUTABLE} ${f1} -d -o tmp/smeshBuilder.py BLSURFPlugin COMMAND ${DOXYGEN_EXECUTABLE} doxyfile_py COMMAND ${DOXYGEN_EXECUTABLE} doxyfile - COMMAND ${PYTHON_EXECUTABLE} -c "import os, shutil; shutil.rmtree(r'''tmp''')" - COMMAND ${PYTHON_EXECUTABLE} -c "import shutil, sys; shutil.rmtree(r'''${CMAKE_INSTALL_PREFIX}/share/doc/salome/gui/BLSURFPLUGIN''',True); shutil.copytree(r'''${CMAKE_CURRENT_BINARY_DIR}''',r'''${CMAKE_INSTALL_PREFIX}/share/doc/salome/gui/BLSURFPLUGIN''', ignore=shutil.ignore_patterns('tmp_env.*', '*usr_docs*', '*CMakeFiles*', '*.cmake', 'doxyfile*', '*.vcproj', 'static', 'Makefile*')); shutil.copy(r'''${CMAKE_CURRENT_SOURCE_DIR}/images/head.png''',r'''${CMAKE_INSTALL_PREFIX}/share/doc/salome/gui/BLSURFPLUGIN'''); shutil.copy(r'''${CMAKE_CURRENT_SOURCE_DIR}/images/head.png''',r'''${CMAKE_INSTALL_PREFIX}/share/doc/salome/gui/BLSURFPLUGIN/blsurfpluginpy_doc''')" - VERBATIM - WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} + COMMAND ${CMAKE_COMMAND} -E remove_directory tmp + VERBATIM + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) + +INSTALL(CODE "EXECUTE_PROCESS(COMMAND \"${CMAKE_COMMAND}\" --build ${PROJECT_BINARY_DIR} --target usr_docs)") +INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/BLSURFPLUGIN DESTINATION ${SALOME_INSTALL_DOC}/gui/) +INSTALL(FILES images/head.png DESTINATION ${SALOME_INSTALL_DOC}/gui/BLSURFPLUGIN) \ No newline at end of file diff --git a/doc/salome/gui/BLSURFPLUGIN/Makefile.am b/doc/salome/gui/BLSURFPLUGIN/Makefile.am deleted file mode 100644 index 8a62b6f..0000000 --- a/doc/salome/gui/BLSURFPLUGIN/Makefile.am +++ /dev/null @@ -1,72 +0,0 @@ -# Copyright (C) 2007-2013 CEA/DEN, EDF R&D -# -# 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 -# - -# File : Makefile.in -# Author : Vasily Rusyaev (Open Cascade NN) -# Module : doc -# -include $(top_srcdir)/adm_local/unix/make_common_starter.am - -EXTRA_DIST += images input static/footer.html static/salome_extra.css - -guidocdir = $(docdir)/gui/BLSURFPLUGIN -guidoc_DATA = images/head.png - -DOC_PYTHONPATH=$(prefix)/bin/salome:$(prefix)/lib/python$(PYTHON_VERSION)/site-packages/salome:$(SMESH_ROOT_DIR)/bin/salome:$(SMESH_ROOT_DIR)/lib/python$(PYTHON_VERSION)/site-packages/salome:$(GEOM_ROOT_DIR)/bin/salome:$(GEOM_ROOT_DIR)/lib/python$(PYTHON_VERSION)/site-packages/salome:$(KERNEL_ROOT_DIR)/bin/salome:$(KERNEL_ROOT_DIR)/lib/python$(PYTHON_VERSION)/site-packages/salome:$(OMNIORB_ROOT)/lib/python$(PYTHON_VERSION)/site-packages:$(OMNIORB_ROOT)/lib64/python$(PYTHON_VERSION)/site-packages -DOC_LD_LIBRARY_PATH=$(prefix)/lib/salome:$(SMESH_ROOT_DIR)/lib/salome:$(GEOM_ROOT_DIR)/lib/salome:$(KERNEL_ROOT_DIR)/lib/salome -DOC_SMESH_MeshersList=BLSURFPlugin - -tmp/smeshBuilder.py: $(top_srcdir)/src/BLSURFPlugin/BLSURFPluginBuilder.py - @mkdir -p tmp && PYTHONPATH=$(DOC_PYTHONPATH):${PYTHONPATH} LD_LIBRARY_PATH=$(DOC_LD_LIBRARY_PATH):${LD_LIBRARY_PATH} SMESH_MeshersList=$(DOC_SMESH_MeshersList) $(PYTHON) $(SMESH_ROOT_DIR)/bin/salome/collect_mesh_methods.py -d -o $@ BLSURFPlugin - -tmp/BLSURFPluginBuilder.py: $(top_srcdir)/src/BLSURFPlugin/BLSURFPluginBuilder.py - @mkdir -p tmp && $(KERNEL_ROOT_DIR)/bin/salome/prepare_generating_doc.py -o $@ $< - -tmp/smesh_algorithm.py : @SMESH_ROOT_DIR@/lib/python@PYTHON_VERSION@/site-packages/salome/salome/smesh/smesh_algorithm.py - @mkdir -p tmp && $(KERNEL_ROOT_DIR)/bin/salome/prepare_generating_doc.py -o $@ $< - -usr_docs: doxyfile_py doxyfile tmp/smeshBuilder.py tmp/BLSURFPluginBuilder.py tmp/smesh_algorithm.py - @$(DOXYGEN) doxyfile_py ; \ - $(DOXYGEN) doxyfile - -docs: usr_docs - -clean-local: - @for filen in `find . -maxdepth 1` ; do \ - case $${filen} in \ - ./Makefile | ./doxyfile | ./doxyfile_py ) ;; \ - . | .. | ./static ) ;; \ - *) echo "Removing $${filen}" ; rm -rf $${filen} ;; \ - esac ; \ - done ; - -install-data-local: usr_docs - $(INSTALL) -d $(DESTDIR)$(docdir)/gui/BLSURFPLUGIN - @for filen in `find . -maxdepth 1` ; do \ - case $${filen} in \ - ./Makefile | ./doxyfile | ./doxyfile_py ) ;; \ - ./doxyfile.bak | ./doxyfile_py.bak ) ;; \ - . | .. | ./static | ./tmp ) ;; \ - *) echo "Installing $${filen}" ; cp -rp $${filen} $(DESTDIR)$(docdir)/gui/BLSURFPLUGIN ;; \ - esac ; \ - done ; - cp -rp $(srcdir)/images/head.png $(DESTDIR)$(docdir)/gui/BLSURFPLUGIN/blsurfpluginpy_doc/ ; - -uninstall-local: - rm -rf $(DESTDIR)$(docdir)/gui/BLSURFPLUGIN \ No newline at end of file diff --git a/doc/salome/gui/BLSURFPLUGIN/doxyfile.in b/doc/salome/gui/BLSURFPLUGIN/doxyfile.in index 0c7c612..6f240ff 100755 --- a/doc/salome/gui/BLSURFPLUGIN/doxyfile.in +++ b/doc/salome/gui/BLSURFPLUGIN/doxyfile.in @@ -20,8 +20,8 @@ #--------------------------------------------------------------------------- # Project related configuration options #--------------------------------------------------------------------------- -PROJECT_NAME = "BLSURFPLUGIN Module Reference Manual v.@VERSION@" -OUTPUT_DIRECTORY = . +PROJECT_NAME = "BLSURFPLUGIN Module Reference Manual v.@SALOMEBLSURFPLUGIN_VERSION@" +OUTPUT_DIRECTORY = BLSURFPLUGIN CREATE_SUBDIRS = NO OUTPUT_LANGUAGE = English TAB_SIZE = 5 @@ -35,19 +35,19 @@ WARNINGS = YES #--------------------------------------------------------------------------- #Input related options #--------------------------------------------------------------------------- -INPUT = @srcdir@/input +INPUT = @CMAKE_CURRENT_SOURCE_DIR@/input FILE_PATTERNS = *.doc -IMAGE_PATH = @srcdir@/images -EXAMPLE_PATH = @top_srcdir@/doc/salome/examples +IMAGE_PATH = @CMAKE_CURRENT_SOURCE_DIR@/images +EXAMPLE_PATH = @CMAKE_SOURCE_DIR@/doc/salome/examples #--------------------------------------------------------------------------- #HTML related options #--------------------------------------------------------------------------- GENERATE_HTML = YES HTML_OUTPUT = . -HTML_HEADER = @builddir@/static/header.html -HTML_FOOTER = @srcdir@/static/footer.html -HTML_EXTRA_STYLESHEET = @srcdir@/static/salome_extra.css +HTML_HEADER = @CMAKE_CURRENT_BINARY_DIR@/static/header.html +HTML_FOOTER = @CMAKE_CURRENT_SOURCE_DIR@/static/footer.html +HTML_EXTRA_STYLESHEET = @CMAKE_CURRENT_SOURCE_DIR@/static/salome_extra.css TOC_EXPAND = YES DISABLE_INDEX = NO GENERATE_TREEVIEW = YES diff --git a/doc/salome/gui/BLSURFPLUGIN/doxyfile_py.in b/doc/salome/gui/BLSURFPLUGIN/doxyfile_py.in index 1c57eaf..a61e773 100755 --- a/doc/salome/gui/BLSURFPLUGIN/doxyfile_py.in +++ b/doc/salome/gui/BLSURFPLUGIN/doxyfile_py.in @@ -21,7 +21,7 @@ # Project related configuration options #--------------------------------------------------------------------------- PROJECT_NAME = "SALOME BLSURFPLUGIN User's Guide" -OUTPUT_DIRECTORY = . +OUTPUT_DIRECTORY = BLSURFPLUGIN CREATE_SUBDIRS = NO OUTPUT_LANGUAGE = English USE_WINDOWS_ENCODING = NO @@ -100,7 +100,7 @@ INPUT = tmp/BLSURFPluginBuilder.py \ tmp/smeshBuilder.py \ tmp/smesh_algorithm.py FILE_PATTERNS = -IMAGE_PATH = @srcdir@/images +IMAGE_PATH = @CMAKE_CURRENT_SOURCE_DIR@/images RECURSIVE = NO EXAMPLE_PATH = @@ -109,9 +109,9 @@ EXAMPLE_PATH = #--------------------------------------------------------------------------- GENERATE_HTML = YES HTML_OUTPUT = blsurfpluginpy_doc -HTML_HEADER = @builddir@/static/header_py.html -HTML_FOOTER = @srcdir@/static/footer.html -HTML_EXTRA_STYLESHEET = @srcdir@/static/salome_extra.css +HTML_HEADER = @CMAKE_CURRENT_BINARY_DIR@/static/header_py.html +HTML_FOOTER = @CMAKE_CURRENT_SOURCE_DIR@/static/footer.html +HTML_EXTRA_STYLESHEET = @CMAKE_CURRENT_SOURCE_DIR@/static/salome_extra.css TOC_EXPAND = YES DISABLE_INDEX = NO GENERATE_TREEVIEW = YES diff --git a/doc/salome/gui/BLSURFPLUGIN/static/header.html.in b/doc/salome/gui/BLSURFPLUGIN/static/header.html.in index cd93290..62c5871 100755 --- a/doc/salome/gui/BLSURFPLUGIN/static/header.html.in +++ b/doc/salome/gui/BLSURFPLUGIN/static/header.html.in @@ -19,5 +19,5 @@ $extrastylesheet
-
Version: @VERSION@
+
Version: @SALOMEBLSURFPLUGIN_VERSION@
diff --git a/doc/salome/gui/BLSURFPLUGIN/static/header_py.html.in b/doc/salome/gui/BLSURFPLUGIN/static/header_py.html.in index 7b68cef..456c5b7 100644 --- a/doc/salome/gui/BLSURFPLUGIN/static/header_py.html.in +++ b/doc/salome/gui/BLSURFPLUGIN/static/header_py.html.in @@ -19,6 +19,6 @@ $extrastylesheet
-
Version: @VERSION@
+
Version: @SALOMEBLSURFPLUGIN_VERSION@
diff --git a/doc/salome/gui/CMakeLists.txt b/doc/salome/gui/CMakeLists.txt new file mode 100755 index 0000000..641bd46 --- /dev/null +++ b/doc/salome/gui/CMakeLists.txt @@ -0,0 +1,23 @@ +# Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE +# +# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +# +# 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 +# + +ADD_SUBDIRECTORY(BLSURFPLUGIN) diff --git a/doc/Makefile.am b/doc/salome/tui/CMakeLists.txt old mode 100644 new mode 100755 similarity index 53% rename from doc/Makefile.am rename to doc/salome/tui/CMakeLists.txt index fe3524a..f93a895 --- a/doc/Makefile.am +++ b/doc/salome/tui/CMakeLists.txt @@ -1,4 +1,7 @@ -# Copyright (C) 2007-2013 CEA/DEN, EDF R&D +# Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE +# +# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -17,16 +20,13 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -# -* Makefile *- -# Author : Patrick GOLDBRONN (CEA) -# Date : 30/11/2001 -# -SUBDIRS = salome +SALOME_CONFIGURE_FILE(doxyfile.in doxyfile) +SALOME_CONFIGURE_FILE(static/header.html.in static/header.html) -usr_docs: - (cd salome && $(MAKE) $(AM_MAKEFLAGS) usr_docs) +ADD_CUSTOM_TARGET(usr_docs_tui ${DOXYGEN_EXECUTABLE}) -docs: usr_docs +ADD_DEPENDENCIES(usr_docs_tui html_docs) -dev_docs: - (cd salome && $(MAKE) $(AM_MAKEFLAGS) dev_docs) +INSTALL(CODE "EXECUTE_PROCESS(COMMAND \"${CMAKE_COMMAND}\" --build ${PROJECT_BINARY_DIR} --target usr_docs_tui)") +INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/BLSURFPLUGIN DESTINATION ${SALOME_INSTALL_DOC}/tui) +INSTALL(FILES images/head.png DESTINATION ${SALOME_INSTALL_DOC}/tui/BLSURFPLUGIN) diff --git a/doc/salome/tui/Makefile.am b/doc/salome/tui/Makefile.am deleted file mode 100644 index 7010a36..0000000 --- a/doc/salome/tui/Makefile.am +++ /dev/null @@ -1,52 +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 -# - -# File : Makefile.in -# Author : Vasily Rusyaev (Open Cascade NN) -# Module : doc -# -include $(top_srcdir)/adm_local/unix/make_common_starter.am - -EXTRA_DIST += images static/footer.html static/salome_extra.css - -tuidocdir = $(docdir)/tui/BLSURFPLUGIN -tuidoc_DATA = images/head.png - -dev_docs: doxyfile - echo "Running doxygen in directory: "`pwd`; \ - $(DOXYGEN) $<; - -clean-local: - -rm -fr BLSURFPLUGIN doxygen.bak - -install-data-local: - if test -d BLSURFPLUGIN; then \ - $(INSTALL) -d $(DESTDIR)$(docdir)/tui ; \ - cp -rp BLSURFPLUGIN $(DESTDIR)$(docdir)/tui ; \ - fi; - -uninstall-local: - @test -d $(DESTDIR)$(tuidocdir) && chmod -R +w $(DESTDIR)$(tuidocdir) ; \ - for filen in `find $(DESTDIR)$(tuidocdir) -mindepth 1 -maxdepth 1` dummy ; do \ - case $${filen} in \ - dummy ) ;; \ - $(DESTDIR)$(tuidocdir)/head.png ) ;; \ - * ) echo "removing $${filen}" && rm -rf $${filen} ;; \ - esac ; \ - done diff --git a/doc/salome/tui/doxyfile.in b/doc/salome/tui/doxyfile.in index ebf016b..032a772 100755 --- a/doc/salome/tui/doxyfile.in +++ b/doc/salome/tui/doxyfile.in @@ -20,7 +20,7 @@ #--------------------------------------------------------------------------- # Project related configuration options #--------------------------------------------------------------------------- -PROJECT_NAME = "BLSURFPLUGIN Module Programming Guide v.@VERSION@" +PROJECT_NAME = "BLSURFPLUGIN Module Programming Guide v.@SALOMEBLSURFPLUGIN_VERSION@" PROJECT_NUMBER = OUTPUT_DIRECTORY = BLSURFPLUGIN CREATE_SUBDIRS = NO @@ -32,7 +32,7 @@ ABBREVIATE_BRIEF = ALWAYS_DETAILED_SEC = YES INLINE_INHERITED_MEMB = YES FULL_PATH_NAMES = YES -STRIP_FROM_PATH = @top_srcdir@ @top_builddir@ +STRIP_FROM_PATH = @CMAKE_SOURCE_DIR@ @CMAKE_SOURCE_DIR@ STRIP_FROM_INC_PATH = SHORT_NAMES = NO JAVADOC_AUTOBRIEF = YES @@ -92,10 +92,10 @@ WARN_LOGFILE = #--------------------------------------------------------------------------- # configuration options related to the input files #--------------------------------------------------------------------------- -INPUT = @top_srcdir@/src \ - @top_srcdir@/bin \ - @top_srcdir@/idl \ - @top_builddir@/bin +INPUT = @CMAKE_SOURCE_DIR@/src \ + @CMAKE_SOURCE_DIR@/bin \ + @CMAKE_SOURCE_DIR@/idl \ + @CMAKE_BUILD_DIR@/bin FILE_PATTERNS = *.idl *.hxx *.cxx *.h *.c *.hh *.cc @DOXYGEN_PYTHON_EXTENSION@ RECURSIVE = YES EXCLUDE = @@ -104,7 +104,7 @@ EXCLUDE_PATTERNS = EXAMPLE_PATH = EXAMPLE_PATTERNS = EXAMPLE_RECURSIVE = YES -IMAGE_PATH = @srcdir@/images +IMAGE_PATH = @CMAKE_CURRENT_SOURCE_DIR@/images INPUT_FILTER = FILTER_PATTERNS = FILTER_SOURCE_FILES = YES @@ -133,9 +133,9 @@ IGNORE_PREFIX = GENERATE_HTML = YES HTML_OUTPUT = . HTML_FILE_EXTENSION = .html -HTML_HEADER = @builddir@/static/header.html -HTML_FOOTER = @srcdir@/static/footer.html -HTML_EXTRA_STYLESHEET = @srcdir@/static/salome_extra.css +HTML_HEADER = @CMAKE_CURRENT_BINARY_DIR@/static/header.html +HTML_FOOTER = @CMAKE_CURRENT_SOURCE_DIR@/static/footer.html +HTML_EXTRA_STYLESHEET = @CMAKE_CURRENT_SOURCE_DIR@/static/salome_extra.css HTML_ALIGN_MEMBERS = YES GENERATE_HTMLHELP = NO CHM_FILE = diff --git a/doc/salome/tui/static/header.html.in b/doc/salome/tui/static/header.html.in index cd93290..62c5871 100644 --- a/doc/salome/tui/static/header.html.in +++ b/doc/salome/tui/static/header.html.in @@ -19,5 +19,5 @@ $extrastylesheet
-
Version: @VERSION@
+
Version: @SALOMEBLSURFPLUGIN_VERSION@
diff --git a/doc/salome/Makefile.am b/idl/CMakeLists.txt old mode 100644 new mode 100755 similarity index 50% rename from doc/salome/Makefile.am rename to idl/CMakeLists.txt index 6d93c6e..aa6e7ac --- a/doc/salome/Makefile.am +++ b/idl/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (C) 2007-2013 CEA/DEN, EDF R&D +# 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 @@ -17,22 +17,31 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -# -* Makefile *- -# Author : Patrick GOLDBRONN (CEA) -# Date : 30/11/2001 -# -SUBDIRS = examples tui gui -SUBDIRSTUI = tui -SUBDIRSGUI = gui +INCLUDE(UseOmniORB) # Provided by KERNEL + +INCLUDE_DIRECTORIES( + ${OMNIORB_INCLUDE_DIR} + ${KERNEL_INCLUDE_DIRS} + ${GEOM_INCLUDE_DIRS} + ${SMESH_INCLUDE_DIRS} + ${PROJECT_BINARY_DIR}/idl +) + +SET(SalomeIDLBLSURFPLUGIN_IDLSOURCES + BLSURFPlugin_Algorithm.idl +) -usr_docs: - @@SETX@; for d in $(SUBDIRSGUI); do \ - (cd $$d && $(MAKE) $@) || exit 1; \ - done; +SET(_idl_include_dirs + ${KERNEL_ROOT_DIR}/idl/salome + ${GEOM_ROOT_DIR}/idl/salome + ${SMESH_ROOT_DIR}/idl/salome +) -docs: usr_docs +SET(_idl_link_flags + ${KERNEL_SalomeIDLKernel} + ${GEOM_SalomeIDLGEOM} + ${SMESH_SalomeIDLSMESH} +) -dev_docs: - @@SETX@; for d in $(SUBDIRSTUI); do \ - (cd $$d && $(MAKE) $@) || exit 1; \ - done; +OMNIORB_ADD_MODULE(SalomeIDLBLSURFPLUGIN "${SalomeIDLBLSURFPLUGIN_IDLSOURCES}" "${_idl_include_dirs}" "${_idl_link_flags}") +INSTALL(TARGETS SalomeIDLBLSURFPLUGIN EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) diff --git a/idl/Makefile.am b/idl/Makefile.am deleted file mode 100644 index e8f8e9c..0000000 --- a/idl/Makefile.am +++ /dev/null @@ -1,124 +0,0 @@ -# Copyright (C) 2007-2013 CEA/DEN, EDF R&D -# -# 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 -# - -# --- -# File : Makefile.am -# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com) -# --- -# This Makefile is responsible of generating the client and server -# implementation of IDL interfaces for both C++ and python usage. -# The building process of the C++ files is in charge of each source -# package and then is not manage here. -# -include $(top_srcdir)/adm_local/unix/make_common_starter.am - -BASEIDL_FILES = BLSURFPlugin_Algorithm.idl - -BASEIDL_FILES_PY=$(BASEIDL_FILES:%.idl=%_idl.py) - -# This variable defines the files to be installed -dist_salomeidl_DATA = $(BASEIDL_FILES) - -# GUI idl common library -lib_LTLIBRARIES = libSalomeIDLBLSURFPLUGIN.la - -# Sources built from idl files -nodist_libSalomeIDLBLSURFPLUGIN_la_SOURCES = BLSURFPlugin_AlgorithmSK.cc - -# header files must be exported: other modules have to use this library -nodist_salomeinclude_HEADERS = $(BASEIDL_FILES:%.idl=%.hh) - -libSalomeIDLBLSURFPLUGIN_la_CPPFLAGS = \ - $(KERNEL_CXXFLAGS) \ - $(GEOM_CXXFLAGS) \ - $(SMESH_CXXFLAGS) \ - @CORBA_CXXFLAGS@ \ - @CORBA_INCLUDES@ \ - -I$(top_builddir)/idl - -libSalomeIDLBLSURFPLUGIN_la_LDFLAGS = -no-undefined -version-info=0:0:0 -libSalomeIDLBLSURFPLUGIN_la_LIBADD = \ - $(KERNEL_LDFLAGS) -lSalomeIDLKernel \ - $(SMESH_LDFLAGS) -lSalomeIDLSMESH \ - $(GEOM_LDFLAGS) -lSalomeIDLGEOM \ - @CORBA_LIBS@ - -# These variables defines the building process of CORBA files -OMNIORB_IDL = @OMNIORB_IDL@ -OMNIORB_IDLCXXFLAGS = @OMNIORB_IDLCXXFLAGS@ -OMNIORB_IDLPYFLAGS = @OMNIORB_IDLPYFLAGS@ \ - -I$(top_builddir)/idl/salome \ - -I$(KERNEL_ROOT_DIR)/idl/salome \ - -I$(GEOM_ROOT_DIR)/idl/salome \ - -I$(SMESH_ROOT_DIR)/idl/salome - -IDLCXXFLAGS = \ - -bcxx \ - @IDLCXXFLAGS@ \ - -I$(top_builddir)/idl/salome \ - -I$(KERNEL_ROOT_DIR)/idl/salome \ - -I$(GEOM_ROOT_DIR)/idl/salome \ - -I$(SMESH_ROOT_DIR)/idl/salome -IDLPYFLAGS = \ - @IDLPYFLAGS@ \ - -I$(KERNEL_ROOT_DIR)/idl/salome \ - -I$(GEOM_ROOT_DIR)/idl/salome \ - -I$(SMESH_ROOT_DIR)/idl/salome - -# potential problem on parallel make on the following - multiple outputs -SUFFIXES = .idl .hh SK.cc -.idlSK.cc: - $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $< -.idl.hh: - $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $< - -install-exec-local: $(BASEIDL_FILES:%=$(top_srcdir)/idl/%) - $(INSTALL) -d $(DESTDIR)$(salomepythondir) - ls $^ | while read file; do \ - $(OMNIORB_IDL) $(IDLPYFLAGS) -C$(DESTDIR)$(salomepythondir) $$file ; \ - done - -# we want to remove only staff generated for IDL files and nothing more -uninstall-local: - @for modulen in BLSURFPlugin ; do \ - test -d $(DESTDIR)$(salomepythondir)/$${modulen} && echo "Removing $(DESTDIR)$(salomepythondir)/$${modulen}" && rm -rf $(DESTDIR)$(salomepythondir)/$${modulen} ; \ - test -d $(DESTDIR)$(salomepythondir)/$${modulen}__POA && echo "Removing $(DESTDIR)$(salomepythondir)/$${modulen}__POA" && rm -rf $(DESTDIR)$(salomepythondir)/$${modulen}__POA ; \ - done ; \ - for filen in $(BASEIDL_FILES_PY) ; do \ - echo "Removing $(DESTDIR)$(salomepythondir)/$${filen}" && rm -f $(DESTDIR)$(salomepythondir)/$${filen}* ; \ - done - -mostlyclean-local: - -rm -f *.hh *.cc .depidl - -# we use cpp to generate dependencies between idl files. -# option x c tells the preprocessor to consider idl as a c file. -# if an idl is modified, all idl dependencies are rebuilt - -.depidl: $(BASEIDL_FILES) - @echo "" > $@ - @for dep in $^ dummy; do \ - if [ $$dep != "dummy" ]; then \ - echo Building dependencies for $$dep; \ - $(CPP) $(C_DEPEND_FLAG) -x c -I$(srcdir) -I$(KERNEL_ROOT_DIR)/idl/salome -I$(GEOM_ROOT_DIR)/idl/salome -I$(SMESH_ROOT_DIR)/idl/salome $$dep 2>/dev/null | \ - sed 's/\.o/\SK.cc/' >>$@; \ - fi; \ - done ; - --include .depidl diff --git a/resources/Makefile.am b/resources/CMakeLists.txt old mode 100644 new mode 100755 similarity index 57% rename from resources/Makefile.am rename to resources/CMakeLists.txt index 4c7f25e..546f1a2 --- a/resources/Makefile.am +++ b/resources/CMakeLists.txt @@ -1,4 +1,7 @@ -# Copyright (C) 2007-2013 CEA/DEN, EDF R&D +# Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE +# +# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -17,23 +20,21 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -# --- -# File : Makefile.am -# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com) -# --- -# -include $(top_srcdir)/adm_local/unix/make_common_starter.am +IF(SALOME_BUILD_GUI) + SET(BLSURFPLUGIN_RESOURCES_FILES_WITH_GUI + BLSURF.png + mesh_select_BLSURF.png + mesh_algo_BLSURF.png + mesh_hypo_BLSURF.png + mesh_tree_algo_BLSURF.png + mesh_tree_hypo_BLSURF.png + ) +ENDIF(SALOME_BUILD_GUI) -dist_salomeres_DATA = \ - BLSURFPlugin.xml \ - SalomeApp.xml +SET(BLSURFPLUGIN_RESOURCES_FILES + BLSURFPlugin.xml + SalomeApp.xml + ${BLSURFPLUGIN_RESOURCES_FILES_WITH_GUI} +) -if BLSURFPLUGIN_ENABLE_GUI - dist_salomeres_DATA += \ - BLSURF.png \ - mesh_select_BLSURF.png \ - mesh_algo_BLSURF.png \ - mesh_hypo_BLSURF.png \ - mesh_tree_algo_BLSURF.png \ - mesh_tree_hypo_BLSURF.png -endif +INSTALL(FILES ${BLSURFPLUGIN_RESOURCES_FILES} DESTINATION ${SALOME_BLSURFPLUGIN_INSTALL_RES_DATA}) diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index 0c7058a..8cdd6ee 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -289,9 +289,7 @@ BLSURFPlugin_BLSURF::BLSURFPlugin_BLSURF(int hypId, int studyId, EnfVertexCoords2ProjVertex.clear(); EnfVertexCoords2EnfVertexList.clear(); -#ifdef WITH_SMESH_CANCEL_COMPUTE _compute_canceled = false; -#endif } //============================================================================= @@ -3104,12 +3102,10 @@ bool BLSURFPlugin_BLSURF::compute(SMESH_Mesh& aMesh, */ //================================================================================ -#ifdef WITH_SMESH_CANCEL_COMPUTE void BLSURFPlugin_BLSURF::CancelCompute() { _compute_canceled = true; } -#endif //============================================================================= /*! @@ -3391,10 +3387,8 @@ status_t message_cb(message_t *msg, void *user_data) status_t interrupt_cb(integer *interrupt_status, void *user_data) { integer you_want_to_continue = 1; -#ifdef WITH_SMESH_CANCEL_COMPUTE BLSURFPlugin_BLSURF* tmp = (BLSURFPlugin_BLSURF*)user_data; you_want_to_continue = !tmp->computeCanceled(); -#endif if(you_want_to_continue) { diff --git a/src/BLSURFPlugin/CMakeLists.txt b/src/BLSURFPlugin/CMakeLists.txt new file mode 100644 index 0000000..3090c5d --- /dev/null +++ b/src/BLSURFPlugin/CMakeLists.txt @@ -0,0 +1,112 @@ +# 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 +# + +# --- options --- +# additional include directories +INCLUDE_DIRECTORIES( + ${QT_INCLUDES} + ${PYTHON_INCLUDE_DIRS} + ${KERNEL_INCLUDE_DIRS} + ${GUI_INCLUDE_DIRS} + ${GEOM_INCLUDE_DIRS} + ${CAS_INCLUDE_DIRS} + ${VTK_INCLUDE_DIRS} + ${MESHGEMS_INCLUDE_DIRS} + ${SMESH_INCLUDE_DIRS} + ${Boost_INCLUDE_DIRS} + ${OMNIORB_INCLUDE_DIR} + ${PROJECT_BINARY_DIR}/idl +) + +# additional preprocessor / compiler flags +ADD_DEFINITIONS( + ${OMNIORB_DEFINITIONS} + ${CAS_DEFINITIONS} + ${BOOST_DEFINITIONS} +) + +# libraries to link to +SET(_link_LIBRARIES + ${PYTHON_LIBRARIES} + ${CAS_TKBRep} + ${CAS_TKGeomBase} + ${CAS_TKGeomAlgo} + ${CAS_TKTopAlgo} + ${CAS_TKXCAF} + ${CAS_TKXSBase} + ${CAS_TKG2d} + ${CAS_TKG3d} + ${CAS_TKShHealing} + ${MESHGEMS_LIBRARIES} + ${SMESH_SMESHimpl} + ${SMESH_SMESHEngine} + ${SMESH_StdMeshers} + ${SMESH_StdMeshersEngine} + ${SMESH_SMDS} + ${SMESH_SMESHDS} + ${GEOM_GEOMbasic} + ${KERNEL_OpUtil} + ${KERNEL_SalomeGenericObj} + ${KERNEL_SalomeNS} + ${KERNEL_SALOMELocalTrace} + ${KERNEL_SALOMEBasics} + ${Boost_LIBRARIES} + SalomeIDLBLSURFPLUGIN +) + +# --- headers --- + +# header files +SET(BLSURFEngine_HEADERS + BLSURFPlugin_BLSURF.hxx + BLSURFPlugin_BLSURF_i.hxx + BLSURFPlugin_Hypothesis.hxx + BLSURFPlugin_Hypothesis_i.hxx + BLSURFPlugin_Attractor.hxx +) + +# --- sources --- + +# sources / static +SET(BLSURFEngine_SOURCES + BLSURFPlugin_BLSURF.cxx + BLSURFPlugin_BLSURF_i.cxx + BLSURFPlugin_Hypothesis.cxx + BLSURFPlugin_Hypothesis_i.cxx + BLSURFPlugin_i.cxx + BLSURFPlugin_Attractor.cxx +) + +# --- scripts --- + +# scripts / static +SET(_bin_SCRIPTS + __init__.py + BLSURFPluginBuilder.py +) + +# --- rules --- + +ADD_LIBRARY(BLSURFEngine ${BLSURFEngine_SOURCES}) +TARGET_LINK_LIBRARIES(BLSURFEngine ${_link_LIBRARIES} ) +INSTALL(TARGETS BLSURFEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) + +INSTALL(FILES ${BLSURFEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS}) + +SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/BLSURFPlugin) diff --git a/src/BLSURFPlugin/Makefile.am b/src/BLSURFPlugin/Makefile.am deleted file mode 100644 index 79d3db3..0000000 --- a/src/BLSURFPlugin/Makefile.am +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright (C) 2007-2013 CEA/DEN, EDF R&D -# -# 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 -# - -# --- -# File : Makefile.am -# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com) -# --- -# -include $(top_srcdir)/adm_local/unix/make_common_starter.am - -# header files -salomeinclude_HEADERS = \ - BLSURFPlugin_BLSURF.hxx \ - BLSURFPlugin_BLSURF_i.hxx \ - BLSURFPlugin_Hypothesis.hxx \ - BLSURFPlugin_Hypothesis_i.hxx \ - BLSURFPlugin_Attractor.hxx - -# Libraries targets -lib_LTLIBRARIES = libBLSURFEngine.la - -dist_libBLSURFEngine_la_SOURCES = \ - BLSURFPlugin_BLSURF.cxx \ - BLSURFPlugin_BLSURF_i.cxx \ - BLSURFPlugin_Hypothesis.cxx \ - BLSURFPlugin_Hypothesis_i.cxx \ - BLSURFPlugin_i.cxx \ - BLSURFPlugin_Attractor.cxx - -libBLSURFEngine_la_CPPFLAGS = \ - $(QT_INCLUDES) \ - $(PYTHON_INCLUDES) \ - $(KERNEL_CXXFLAGS) \ - $(GUI_CXXFLAGS) \ - $(GEOM_CXXFLAGS) \ - $(CAS_CPPFLAGS) \ - $(VTK_INCLUDES) \ - $(MESHGEMS_CADSURF_INCLUDES) \ - $(SMESH_CXXFLAGS) \ - $(CORBA_CXXFLAGS) \ - $(CORBA_INCLUDES) \ - $(BOOST_CPPFLAGS) \ - -I$(top_builddir)/idl - -#Qt uniquement necessaire pour le getActiveStudyDocument de SMeshGuiUtils.h - -libBLSURFEngine_la_LDFLAGS = \ - ../../idl/libSalomeIDLBLSURFPLUGIN.la \ - $(PYTHON_LIBS) \ - $(CAS_KERNEL) -lTKBRep -lTKGeomBase -lTKGeomAlgo -lTKTopAlgo -lTKLCAF -lTKXSBase -lTKG2d -lTKG3d -lTKShHealing \ - $(MESHGEMS_CADSURF_LIBS) \ - $(SMESH_LDFLAGS) -lSMESHimpl -lSMESHEngine -lStdMeshers -lStdMeshersEngine -lSMDS -lSMESHDS \ - $(GEOM_LDFLAGS) -lGEOMbasic \ - $(KERNEL_LDFLAGS) -lOpUtil -lSalomeGenericObj -lSalomeNS -lSALOMELocalTrace -lSALOMEBasics \ - $(BOOST_LIB_REGEX) - -# Scripts to be installed. -#dist_salomescript_DATA= BLSURFPluginDC.py -mypkgpythondir = $(salomepythondir)/salome/BLSURFPlugin -mypkgpython_PYTHON = \ - __init__.py \ - BLSURFPluginBuilder.py diff --git a/src/Makefile.am b/src/CMakeLists.txt old mode 100644 new mode 100755 similarity index 69% rename from src/Makefile.am rename to src/CMakeLists.txt index 6b79483..3c55c8e --- a/src/Makefile.am +++ b/src/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (C) 2007-2013 CEA/DEN, EDF R&D +# 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 @@ -17,17 +17,24 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -# --- -# File : Makefile.am -# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com) -# --- -# -include $(top_srcdir)/adm_local/unix/make_common_starter.am +## +# Common packages +## +SET(SUBDIRS_COMMON + BLSURFPlugin +) -SUBDIRS = BLSURFPlugin +IF(SALOME_BUILD_GUI) + SET(SUBDIRS_ENABLE_GUI + GUI + ) +ENDIF(SALOME_BUILD_GUI) -if BLSURFPLUGIN_ENABLE_GUI - SUBDIRS += GUI -endif +SET(SUBDIRS + ${SUBDIRS_COMMON} + ${SUBDIRS_ENABLE_GUI} +) -DIST_SUBDIRS = BLSURFPlugin GUI +FOREACH(dir ${SUBDIRS}) + ADD_SUBDIRECTORY(${dir}) +ENDFOREACH(dir ${SUBDIRS}) diff --git a/src/GUI/BLSURFPluginGUI_HypothesisCreator.h b/src/GUI/BLSURFPluginGUI_HypothesisCreator.h index b43af77..6c6a407 100644 --- a/src/GUI/BLSURFPluginGUI_HypothesisCreator.h +++ b/src/GUI/BLSURFPluginGUI_HypothesisCreator.h @@ -219,7 +219,7 @@ protected slots: void onInternalVerticesClicked(int); // Periodicity tab void onPeriodicityByVerticesChecked(bool); - void onPeriodicityRadioButtonChanged(); +// void onPeriodicityRadioButtonChanged(); void onAddPeriodicity(); void onRemovePeriodicity(); void onPeriodicityTreeClicked(QTreeWidgetItem*, int); diff --git a/src/GUI/CMakeLists.txt b/src/GUI/CMakeLists.txt new file mode 100644 index 0000000..d43c6e6 --- /dev/null +++ b/src/GUI/CMakeLists.txt @@ -0,0 +1,121 @@ +# 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 +# + +INCLUDE(UseQt4Ext) + +# --- options --- +# additional include directories +INCLUDE_DIRECTORIES( + ${QT_INCLUDES} + ${CAS_INCLUDE_DIRS} + ${PYTHON_INCLUDES} + ${KERNEL_INCLUDE_DIRS} + ${GUI_INCLUDE_DIRS} + ${GEOM_INCLUDE_DIRS} + ${SMESH_INCLUDE_DIRS} + ${VTK_INCLUDE_DIRS} + ${Boost_INCLUDE_DIRS} + ${OMNIORB_INCLUDE_DIR} + ${MESHGEMS_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${PROJECT_BINARY_DIR}/idl + ${PROJECT_SOURCE_DIR}/src/BLSURFPlugin +) + +# additional preprocessor / compiler flags +ADD_DEFINITIONS( + ${QT_DEFINITIONS} + ${OMNIORB_DEFINITIONS} + ${CAS_DEFINITIONS} + ${BOOST_DEFINITIONS} +) + +# libraries to link to +SET(_link_LIBRARIES + ${QT_LIBRARIES} + ${QT_MT_LIBS} + ${GUI_qtx} + ${GUI_SalomeApp} + ${GUI_suit} + ${GUI_SalomeObject} + ${GUI_LightApp} + ${GEOM_GEOM} + ${SMESH_SMESH} + ${SMESH_SMESHEngine} + ${SMESH_GeomSelectionTools} + ${SMESH_StdMeshersGUI} + ${SMESH_SMESHFiltersSelection} + ${CAS_KERNEL} + ${MESHGEMS_LIBRARIES} + SalomeIDLBLSURFPLUGIN + BLSURFEngine +) + +# --- headers --- + +# header files / to be processed by moc +SET(BLSURFPluginGUI_HEADERS + BLSURFPluginGUI_HypothesisCreator.h + BLSURFPluginGUI_Dlg.h +) + +# --- sources --- + +# sources / moc wrappings +QT4_WRAP_CPP(_moc_SOURCES ${BLSURFPluginGUI_HEADERS}) + +# sources / static +SET(_other_SOURCES + BLSURFPluginGUI.cxx + BLSURFPluginGUI_StdWidget.cxx + BLSURFPluginGUI_AdvWidget.cxx + BLSURFPluginGUI_HypothesisCreator.cxx +) + +# --- resources --- + +# resource files / to be processed by lrelease +SET(_ts_RESOURCES + BLSURFPlugin_images.ts + BLSURFPlugin_msg_en.ts + BLSURFPlugin_msg_fr.ts + BLSURFPlugin_msg_ja.ts +) + +# resource files / to be processed by uic +SET(_uic_files + BLSURFPluginGUI_StdWidget_QTD.ui + BLSURFPluginGUI_AdvWidget_QTD.ui +) + +# header files / uic wrappings +QT4_WRAP_UI(_uic_HEADERS ${_uic_files}) + +# sources / to compile +SET(BLSURFPluginGUI_SOURCES ${_other_SOURCES} ${_moc_SOURCES} ${_uic_HEADERS}) + +# --- rules --- + +ADD_LIBRARY(BLSURFPluginGUI ${BLSURFPluginGUI_SOURCES}) +TARGET_LINK_LIBRARIES(BLSURFPluginGUI ${_link_LIBRARIES} ) +INSTALL(TARGETS BLSURFPluginGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) + +INSTALL(FILES ${BLSURFPluginGUI_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS}) + +QT4_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_BLSURFPLUGIN_INSTALL_RES_DATA}") diff --git a/src/GUI/Makefile.am b/src/GUI/Makefile.am deleted file mode 100644 index 3242e8b..0000000 --- a/src/GUI/Makefile.am +++ /dev/null @@ -1,86 +0,0 @@ -# Copyright (C) 2007-2013 CEA/DEN, EDF R&D -# -# 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 -# - -# --- -# File : Makefile.am -# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com) -# --- -# -include $(top_srcdir)/adm_local/unix/make_common_starter.am - -# header files -salomeinclude_HEADERS = \ - BLSURFPluginGUI_Dlg.h \ - BLSURFPluginGUI_HypothesisCreator.h - -# Libraries targets -lib_LTLIBRARIES = libBLSURFPluginGUI.la - -dist_libBLSURFPluginGUI_la_SOURCES = \ - BLSURFPluginGUI.cxx \ - BLSURFPluginGUI_StdWidget.cxx \ - BLSURFPluginGUI_AdvWidget.cxx \ - BLSURFPluginGUI_HypothesisCreator.cxx - -MOC_FILES = \ - BLSURFPluginGUI_HypothesisCreator_moc.cxx \ - BLSURFPluginGUI_Dlg_moc.cxx - -UIC_FILES = \ - ui_BLSURFPluginGUI_StdWidget_QTD.h \ - ui_BLSURFPluginGUI_AdvWidget_QTD.h - -BUILT_SOURCES = $(UIC_FILES) - -nodist_libBLSURFPluginGUI_la_SOURCES = \ - $(MOC_FILES) - -# additionnal information to compil and link file - -libBLSURFPluginGUI_la_CPPFLAGS = \ - $(QT_INCLUDES) \ - $(CAS_CPPFLAGS) \ - $(PYTHON_INCLUDES) \ - $(KERNEL_CXXFLAGS) \ - $(GUI_CXXFLAGS) \ - $(GEOM_CXXFLAGS) \ - $(SMESH_CXXFLAGS) \ - $(VTK_INCLUDES) \ - $(BOOST_CPPFLAGS) \ - $(CORBA_CXXFLAGS) \ - $(CORBA_INCLUDES) \ - $(MESHGEMS_CADSURF_INCLUDES) \ - -I$(srcdir)/../BLSURFPlugin \ - -I$(top_builddir)/idl - -libBLSURFPluginGUI_la_LDFLAGS = \ - $(QT_LIBS) $(QT_MT_LIBS)\ - ../BLSURFPlugin/libBLSURFEngine.la \ - ../../idl/libSalomeIDLBLSURFPLUGIN.la \ - $(GUI_LDFLAGS) -lqtx -lSalomeApp -lsuit -lSalomeObject -lLightApp \ - $(GEOM_LDFLAGS) -lGEOM \ - ${SMESH_LDFLAGS} -lSMESH -lSMESHEngine -lGeomSelectionTools -lStdMeshersGUI -lSMESHFiltersSelection \ - $(CAS_KERNEL) $(MESHGEMS_CADSURF_LIBS) - -# resources files -nodist_salomeres_DATA = \ - BLSURFPlugin_images.qm \ - BLSURFPlugin_msg_en.qm \ - BLSURFPlugin_msg_fr.qm \ - BLSURFPlugin_msg_ja.qm diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt new file mode 100755 index 0000000..4be6048 --- /dev/null +++ b/tests/CMakeLists.txt @@ -0,0 +1,38 @@ +# Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE +# +# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +# +# 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(BLSURFPLUGIN_TEST_FILES + test_enforced_internal_vertex.py + test_enforced_vertex.py + test_periodicity_2D_precad.py + test_periodicity_2D.py + test_periodicity_precad.py + test_periodicity.py + test_periodicity_reflexion_2D_precad.py + test_periodicity_reflexion_2D.py + test_periodicity_reflexion_precad.py + test_periodicity_reflexion.py + test_periodicity_with_points_2D_precad.py + test_precad_intersections.py +) + +INSTALL(FILES ${BLSURFPLUGIN_TEST_FILES} DESTINATION ${SALOME_BLSURFPLUGIN_INSTALL_TESTS}) diff --git a/tests/Makefile.am b/tests/Makefile.am deleted file mode 100644 index 7534495..0000000 --- a/tests/Makefile.am +++ /dev/null @@ -1,42 +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 -# - -include $(top_srcdir)/adm_local/unix/make_common_starter.am - -# =============================================================== -# Files to be installed -# =============================================================== -# - -# Scripts to be installed. -dist_salomescript_DATA = \ - test_enforced_internal_vertex.py \ - test_enforced_vertex.py \ - test_periodicity_2D_precad.py \ - test_periodicity_2D.py \ - test_periodicity_precad.py \ - test_periodicity.py \ - test_periodicity_reflexion_2D_precad.py \ - test_periodicity_reflexion_2D.py \ - test_periodicity_reflexion_precad.py \ - test_periodicity_reflexion.py \ - test_periodicity_with_points_2D_precad.py \ - test_precad_intersections.py - -mypkgpythondir = $(salomepythondir)/salome/BLSURFPlugin -- 2.30.2