From 8af4ec523b30b4037c04b6f202dbc18c292888e0 Mon Sep 17 00:00:00 2001 From: rnv Date: Fri, 20 Sep 2013 12:26:09 +0000 Subject: [PATCH] ATOMSOLV porting to CMake build system : initial version. --- ATOMSOLV_version.h.in | 20 +- CMakeLists.txt | 190 +++++++++++ src/Makefile.am => adm_local/CMakeLists.txt | 8 +- adm_local/cmake_files/CMakeLists.txt | 29 ++ .../FindATOMSOLV.cmake} | 7 +- .../cmake_files/FindSalomeATOMSOLV.cmake | 30 ++ .../cmake_files/SalomeATOMSOLVConfig.cmake.in | 106 ++++++ .../{Makefile.am => unix/CMakeLists.txt} | 6 +- .../unix/config_files/CMakeLists.txt | 15 +- adm_local/unix/make_common_starter.am | 93 ------ bin/CMakeLists.txt | 31 ++ bin/VERSION.in | 4 +- build_configure | 95 ------ clean_configure | 26 -- configure.ac | 312 ------------------ .../Makefile.am => idl/CMakeLists.txt | 38 ++- idl/Makefile.am | 96 ------ Makefile.am => resources/CMakeLists.txt | 35 +- resources/Makefile.am | 32 -- resources/SalomeApp.xml.in | 2 +- src/ATOMSOLV/ATOMSOLV.cxx | 2 +- src/ATOMSOLV/CMakeLists.txt | 61 ++++ src/ATOMSOLVGUI/CMakeLists.txt | 105 ++++++ src/ATOMSOLVGUI/Makefile.am | 74 ----- .../unix/Makefile.am => src/CMakeLists.txt | 18 +- 25 files changed, 646 insertions(+), 789 deletions(-) create mode 100755 CMakeLists.txt rename src/Makefile.am => adm_local/CMakeLists.txt (82%) create mode 100755 adm_local/cmake_files/CMakeLists.txt rename adm_local/{unix/config_files/Makefile.am => cmake_files/FindATOMSOLV.cmake} (75%) create mode 100644 adm_local/cmake_files/FindSalomeATOMSOLV.cmake create mode 100644 adm_local/cmake_files/SalomeATOMSOLVConfig.cmake.in rename adm_local/{Makefile.am => unix/CMakeLists.txt} (85%) mode change 100644 => 100755 rename bin/Makefile.am => adm_local/unix/config_files/CMakeLists.txt (76%) delete mode 100644 adm_local/unix/make_common_starter.am create mode 100755 bin/CMakeLists.txt delete mode 100755 build_configure delete mode 100755 clean_configure delete mode 100755 configure.ac rename src/ATOMSOLV/Makefile.am => idl/CMakeLists.txt (54%) delete mode 100644 idl/Makefile.am rename Makefile.am => resources/CMakeLists.txt (55%) delete mode 100644 resources/Makefile.am create mode 100755 src/ATOMSOLV/CMakeLists.txt create mode 100644 src/ATOMSOLVGUI/CMakeLists.txt delete mode 100644 src/ATOMSOLVGUI/Makefile.am rename adm_local/unix/Makefile.am => src/CMakeLists.txt (75%) mode change 100644 => 100755 diff --git a/ATOMSOLV_version.h.in b/ATOMSOLV_version.h.in index eeb9758..0172a96 100644 --- a/ATOMSOLV_version.h.in +++ b/ATOMSOLV_version.h.in @@ -20,12 +20,22 @@ #if !defined(__ATOMSOLV_VERSION_H__) #define __ATOMSOLV_VERSION_H__ -/* - ATOMSOLV_VERSION is (major << 16) + (minor << 8) + patch. +/*! + Specify version of SALOME ATOMSOLV module, as follows + + ATOMSOLV_VERSION_MAJOR : (integer) number identifying major version + ATOMSOLV_VERSION_MINOR : (integer) number identifying minor version + ATOMSOLV_VERSION_MAINTENANCE : (integer) number identifying maintenance version + ATOMSOLV_VERSION_STR : (string) complete version number "major.minor.maintenance" + ATOMSOLV_VERSION : (hex) complete version number (major << 16) + (minor << 8) + maintenance + ATOMSOLV_DEVELOPMENT : (integer) indicates development version when set to 1 */ -#define ATOMSOLV_VERSION_STR "@VERSION@" -#define ATOMSOLV_VERSION @XVERSION@ -#define ATOMSOLV_DEVELOPMENT @VERSION_DEV@ +#define ATOMSOLV_VERSION_MAJOR @SALOMEATOMSOLV_MAJOR_VERSION@ +#define ATOMSOLV_VERSION_MINOR @SALOMEATOMSOLV_MINOR_VERSION@ +#define ATOMSOLV_VERSION_MAINTENANCE @SALOMEATOMSOLV_PATCH_VERSION@ +#define ATOMSOLV_VERSION_STR "@SALOMEATOMSOLV_VERSION@" +#define ATOMSOLV_VERSION @SALOMEATOMSOLV_XVERSION@ +#define ATOMSOLV_DEVELOPMENT @SALOMEATOMSOLV_VERSION_DEV@ #endif // __ATOMSOLV_VERSION_H__ diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100755 index 0000000..bb2e6cc --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,190 @@ +# 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(SalomeATOMSOLV 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}) + +# 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_DOC "Generate SALOME ATOMSOLV documentation" ${SALOME_BUILD_DOC}) For use in the future +#OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ${SALOME_BUILD_TESTS}) For use in the future + +# Find 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 REQUIRED) +ELSE(EXISTS ${GUI_ROOT_DIR}) + MESSAGE(FATAL_ERROR "We absolutely need a Salome GUI, please define GUI_ROOT_DIR") +ENDIF(EXISTS ${GUI_ROOT_DIR}) + +## +## ATOMSOLV specifics +## + +FIND_PACKAGE(SalomePython REQUIRED) +FIND_PACKAGE(SalomeOmniORB REQUIRED) +FIND_PACKAGE(SalomeOmniORBPy REQUIRED) +# Qt4 +FIND_PACKAGE(SalomeQt4 REQUIRED COMPONENTS QtCore QtGui) +INCLUDE(${QT_USE_FILE}) +#OCCT +FIND_PACKAGE(SalomeCAS) +# VTK +FIND_PACKAGE(SalomeVTK 6.0) + +# Find ATOMGEN +# =========== +SET(ATOMGEN_ROOT_DIR $ENV{ATOMGEN_ROOT_DIR} CACHE PATH "Path to the Salome ATOMGEN") +IF(EXISTS ${ATOMGEN_ROOT_DIR}) + LIST(APPEND CMAKE_MODULE_PATH "${ATOMGEN_ROOT_DIR}/adm_local/cmake_files") + FIND_PACKAGE(SalomeATOMGEN REQUIRED) +ELSE(EXISTS ${ATOMGEN_ROOT_DIR}) + MESSAGE(FATAL_ERROR "We absolutely need a Salome ATOMGEN, please define ATOMGEN_ROOT_DIR") +ENDIF(EXISTS ${ATOMGEN_ROOT_DIR}) + +# 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 ATOMSOLV: +SET(SALOME_ATOMSOLV_INSTALL_RES_DATA "${SALOME_INSTALL_RES}/atomsolv" CACHE PATH + "Install path: SALOME ATOMSOLV specific data") + +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_ATOMSOLV_INSTALL_RES_DATA) + +# Sources +# ======== +ADD_SUBDIRECTORY(idl) +ADD_SUBDIRECTORY(adm_local) +ADD_SUBDIRECTORY(resources) +ADD_SUBDIRECTORY(src) +ADD_SUBDIRECTORY(bin) + +# Header configuration +# ==================== +SALOME_XVERSION(${PROJECT_NAME}) +SALOME_CONFIGURE_FILE(ATOMSOLV_version.h.in ATOMSOLV_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 + SalomeIDLATOMSOLV ATOMSOLV ATOMSOLVEngine +) + +# 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(GUI_ROOT_DIR "${GUI_ROOT_DIR}") +SET(ATOMGEN_ROOT_DIR "${ATOMGEN_ROOT_DIR}") + +SET(CONF_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}/include" "${PROJECT_BINARY_DIR}/include") +CONFIGURE_PACKAGE_CONFIG_FILE(adm_local/cmake_files/${PROJECT_NAME}Config.cmake.in + ${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 + GUI_ROOT_DIR ATOMGEN_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) \ No newline at end of file diff --git a/src/Makefile.am b/adm_local/CMakeLists.txt similarity index 82% rename from src/Makefile.am rename to adm_local/CMakeLists.txt index 4f64baf..84d97c2 100755 --- a/src/Makefile.am +++ b/adm_local/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,6 +20,5 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -include $(top_srcdir)/adm_local/unix/make_common_starter.am - -SUBDIRS = ATOMSOLV ATOMSOLVGUI +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..f33394b --- /dev/null +++ b/adm_local/cmake_files/CMakeLists.txt @@ -0,0 +1,29 @@ +# 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 + FindATOMSOLV.cmake + FindSalomeATOMSOLV.cmake +) +INSTALL(FILES ${_adm_data} DESTINATION ${SALOME_INSTALL_CMAKE_LOCAL}) diff --git a/adm_local/unix/config_files/Makefile.am b/adm_local/cmake_files/FindATOMSOLV.cmake similarity index 75% rename from adm_local/unix/config_files/Makefile.am rename to adm_local/cmake_files/FindATOMSOLV.cmake index e1f5e52..c4aea56 100644 --- a/adm_local/unix/config_files/Makefile.am +++ b/adm_local/cmake_files/FindATOMSOLV.cmake @@ -16,7 +16,10 @@ # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # +# -include $(top_srcdir)/adm_local/unix/make_common_starter.am +SET(ATOMSOLV_CXXFLAGS ${ATOMSOLV_ROOT_DIR}/include/salome) -dist_admlocalm4_DATA = check_ATOMSOLV.m4 +FIND_LIBRARY(ATOMSOLV ATOMSOLV ${ATOMSOLV_ROOT_DIR}/lib/salome) +FIND_LIBRARY(ATOMSOLVGUI ATOMSOLVGUI ${ATOMSOLV_ROOT_DIR}/lib/salome) +FIND_LIBRARY(SalomeIDLATOMSOLV SalomeIDLATOMSOLV ${ATOMSOLV_ROOT_DIR}/lib/salome) diff --git a/adm_local/cmake_files/FindSalomeATOMSOLV.cmake b/adm_local/cmake_files/FindSalomeATOMSOLV.cmake new file mode 100644 index 0000000..6b98bad --- /dev/null +++ b/adm_local/cmake_files/FindSalomeATOMSOLV.cmake @@ -0,0 +1,30 @@ +# 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 +# +# + +IF(NOT SalomeATOMSOLV_FIND_QUIETLY) + MESSAGE(STATUS "Looking for Salome ATOMSOLV ...") +ENDIF() + +SET(CMAKE_PREFIX_PATH "${ATOMSOLV_ROOT_DIR}") +SALOME_FIND_PACKAGE(SalomeATOMSOLV SalomeATOMSOLV CONFIG) + +IF(NOT SalomeATOMSOLV_FIND_QUIETLY) + MESSAGE(STATUS "Found Salome ATOMSOLV: ${ATOMSOLV_ROOT_DIR}") +ENDIF() diff --git a/adm_local/cmake_files/SalomeATOMSOLVConfig.cmake.in b/adm_local/cmake_files/SalomeATOMSOLVConfig.cmake.in new file mode 100644 index 0000000..ffe5922 --- /dev/null +++ b/adm_local/cmake_files/SalomeATOMSOLVConfig.cmake.in @@ -0,0 +1,106 @@ +# - 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 SalomeIDLATOMSOLV AND NOT @PROJECT_NAME@_BINARY_DIR) + INCLUDE("@PACKAGE_SALOME_INSTALL_CMAKE_LOCAL@/@PROJECT_NAME@Targets.cmake") +ENDIF() + +# Package root dir: +SET_AND_CHECK(ATOMSOLV_ROOT_DIR_EXP "@PACKAGE_CMAKE_INSTALL_PREFIX@") + +# Include directories +SET_AND_CHECK(ATOMSOLV_INCLUDE_DIRS "${ATOMSOLV_ROOT_DIR_EXP}/@SALOME_INSTALL_HEADERS@") + +#### Now the specificities + +# Options exported by the package: +SET(SALOME_BUILD_DOC @SALOME_BUILD_DOC@) +SET(SALOME_BUILD_TESTS @SALOME_BUILD_TESTS@) + +# Level 1 prerequisites: +SET_AND_CHECK(GUI_ROOT_DIR_EXP "@PACKAGE_GUI_ROOT_DIR@") +SET_AND_CHECK(ATOMGEN_ROOT_DIR_EXP "@PACKAGE_ATOMGEN_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 ) +SET(_PREREQ_CONFIG_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 GUI targets if they were not already loaded: +IF(NOT (TARGET Event)) + INCLUDE("${GUI_ROOT_DIR_EXP}/${SALOME_INSTALL_CMAKE_LOCAL}/SalomeGUITargets.cmake") +ENDIF() + +# Include ATOMGEN targets if they were not already loaded: +IF(NOT (TARGET SALOMEBasics)) + INCLUDE("${ATOMGEN_ROOT_DIR_EXP}/${SALOME_INSTALL_CMAKE_LOCAL}/SalomeATOMGENTargets.cmake") +ENDIF() + +# Exposed ATOMSOLV targets: +SET(ATOMSOLV_ATOMSOLVGUI ATOMSOLVGUI) +SET(ATOMSOLV_ATOMSOLV ATOMSOLV) +SET(ATOMSOLV_SalomeIDLATOMSOLV SalomeIDLATOMSOLV) \ No newline at end of file diff --git a/adm_local/Makefile.am b/adm_local/unix/CMakeLists.txt old mode 100644 new mode 100755 similarity index 85% rename from adm_local/Makefile.am rename to adm_local/unix/CMakeLists.txt index a8acbbd..2f895ae --- a/adm_local/Makefile.am +++ b/adm_local/unix/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE +# 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,6 +17,4 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -include $(top_srcdir)/adm_local/unix/make_common_starter.am - -SUBDIRS = unix +ADD_SUBDIRECTORY(config_files) diff --git a/bin/Makefile.am b/adm_local/unix/config_files/CMakeLists.txt similarity index 76% rename from bin/Makefile.am rename to adm_local/unix/config_files/CMakeLists.txt index 98bb465..012bef0 100755 --- a/bin/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,10 +20,8 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -include $(top_srcdir)/adm_local/unix/make_common_starter.am - -# non-distributed files -nodist_salomescript_DATA = VERSION runAppli - -# distributed files -dist_salomescript_SCRIPTS = myrunSalome.py +SET(_m4_data + check_ATOMSOLV.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 9bf7244..0000000 --- a/adm_local/unix/make_common_starter.am +++ /dev/null @@ -1,93 +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 -# - -# ============================================================ -# 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 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 - -# IDL directory -salomeidldir = ${prefix}/idl/salome - -# common rules - -# meta object implementation files generation (moc) -%_moc.cxx: %.h - $(MOC) $< -o $@ - -# translation (*.qm) files generation (lrelease) -%.qm: resources/%.ts - $(LRELEASE) $< -qm $@ - -# resource files generation (qrcc) -qrc_%.cxx: %.qrc - $(QRCC) $< -o $@ -name $(*F) - -# qt forms python files generation (pyuic) -ui_%.py: %.ui - $(PYUIC) -o $@ $< - -# extra distributed files -EXTRA_DIST = $(MOC_FILES:%_moc.cxx=%.h) $(QRC_FILES:qrc_%.cxx=%.qrc) \ - $(nodist_salomeres_DATA:%.qm=resources/%.ts) - -# customize clean operation -mostlyclean-local: - rm -f @builddir@/*_moc.cxx - rm -f @builddir@/*.qm - rm -f @builddir@/ui_*.py - 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..ffdf7b4 --- /dev/null +++ b/bin/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 +# + +SALOME_CONFIGURE_FILE(VERSION.in VERSION INSTALL ${SALOME_INSTALL_BINS}) +SALOME_CONFIGURE_FILE(runAppli.in runAppli INSTALL ${SALOME_INSTALL_BINS}) + +# =============================================================== +# Files to be installed +# =============================================================== + +SET(_bin_scripts + myrunSalome.py +) + +SALOME_INSTALL_SCRIPTS("${_bin_scripts}" ${SALOME_INSTALL_SCRIPT_SCRIPTS}) diff --git a/bin/VERSION.in b/bin/VERSION.in index 7ce9778..5e534ec 100755 --- a/bin/VERSION.in +++ b/bin/VERSION.in @@ -1,3 +1,3 @@ -[SALOME ATOMSOLV] : @VERSION@ -[DEVELOPMENT] : @VERSION_DEV@ +[SALOME ATOMSOLV] : @SALOMEATOMSOLV_VERSION@ +[DEVELOPMENT] : @SALOMEATOMSOLV_VERSION_DEV@ [DESCRIPTION] : This is sample of CORBA-based SALOME module (part of SALOME tutorial) diff --git a/build_configure b/build_configure deleted file mode 100755 index 55922fe..0000000 --- a/build_configure +++ /dev/null @@ -1,95 +0,0 @@ -#!/bin/bash - -# 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 -# - -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 GUI_ROOT_DIR is set correctly - -if test ! -d "${GUI_ROOT_DIR}"; then - echo "failed : GUI_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" - -aclocal -I adm_local/unix/config_files \ - -I ${GUI_ROOT_DIR}/adm_local/unix/config_files \ - -I ${ATOMGEN_ROOT_DIR}/adm_local/unix/config_files \ - -I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files || exit 1 - -# ____________________________________________________________________ -# 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 493cd60..0000000 --- a/clean_configure +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -# 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 -# - -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 100755 index 217caf1..0000000 --- a/configure.ac +++ /dev/null @@ -1,312 +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 -# - -AC_INIT([Salome2 Project ATOMSOLV module], [7.2.0], [webmaster.salome@opencascade.com], [SalomeATOMSOLV]) -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) - -# set up MODULE_NAME variable for dynamic construction of directories (resources, etc.) -MODULE_NAME=atomsolv -AC_SUBST(MODULE_NAME) -VERSION_DEV=0 -AC_SUBST(VERSION_DEV) - -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 - -AC_CHECK_PROG(SHELL,sh) -AC_SUBST(SHELL) - -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 - -echo -echo --------------------------------------------- -echo testing C/C++ -echo --------------------------------------------- -echo - -cc_ok=no -dnl inutil car libtool -dnl AC_PROG_CC -AC_PROG_CXX -AC_CXX_WARNINGS -AC_CXX_TEMPLATE_OPTIONS -AC_DEPEND_FLAG -# AC_CC_WARNINGS([ansi]) -cc_ok=yes - -dnl Library libdl : -AC_CHECK_LIB(dl,dlopen) - -dnl add library libm : -AC_CHECK_LIB(m,ceil) - -dnl Library librt : for alpha/osf -AC_CHECK_LIB(rt,nanosleep) - -dnl -dnl Check if we use std iostream by default or if we must add -dnl a compiler directive for that -dnl - -AC_CXX_USE_STD_IOSTREAM - -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 - -dnl -dnl --------------------------------------------- -dnl testing linker -dnl --------------------------------------------- -dnl - -AC_LINKER_OPTIONS - -dnl -dnl --------------------------------------------- -dnl testing WITHIHM -dnl --------------------------------------------- -dnl - -CHECK_WITHIHM - -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) - -echo -echo --------------------------------------------- -echo testing threads -echo --------------------------------------------- -echo - -ENABLE_PTHREADS - -echo -echo --------------------------------------------- -echo testing omniORB -echo --------------------------------------------- -echo - -CHECK_OMNIORB - -echo -echo --------------------------------------------- -echo default ORB : omniORB -echo --------------------------------------------- -echo - -DEFAULT_ORB=omniORB - -echo -echo --------------------------------------------- -echo testing Corba -echo --------------------------------------------- -echo - -CHECK_CORBA - -AC_SUBST_FILE(CORBA) -corba=make_$ORB -CORBA=adm_local/unix/$corba - -echo -echo --------------------------------------------- -echo BOOST Library -echo --------------------------------------------- -echo - -CHECK_BOOST - -echo -echo --------------------------------------------- -echo Testing Qt -echo --------------------------------------------- -echo - -CHECK_QT - -echo -echo --------------------------------------------- -echo Testing OpenCascade -echo --------------------------------------------- -echo - -CHECK_CAS - -echo -echo --------------------------------------------- -echo Testing VTK -echo --------------------------------------------- -echo - -CHECK_VTK - -echo -echo --------------------------------------------- -echo Testing Kernel -echo --------------------------------------------- -echo - -CHECK_KERNEL - -echo -echo --------------------------------------------- -echo Testing GUI -echo --------------------------------------------- -echo - -CHECK_SALOME_GUI - -echo -echo --------------------------------------------- -echo Testing ATOMGEN -echo --------------------------------------------- -echo - -CHECK_ATOMGEN - -echo -echo --------------------------------------------- -echo Summary -echo --------------------------------------------- -echo - -echo Configure -variables="cc_ok lex_yacc_ok python_ok threads_ok omniORB_ok boost_ok qt_ok occ_ok vtk_ok Kernel_ok SalomeGUI_ok ATOMGEN_ok" - -for var in $variables -do - printf " %10s : " `echo \$var | sed -e "s,_ok,,"` - eval echo \$$var -done - -dnl We don't need to say when we re entering directories if we re using -dnl GNU make because make does it for us. -if test "X$GMAKE" = "Xyes"; then - AC_SUBST(SETX) SETX=":" -else - AC_SUBST(SETX) SETX="set -x" -fi - -AC_OUTPUT_COMMANDS([ \ - chmod +x ./bin/* \ -]) - -echo -echo --------------------------------------------- -echo generating Makefiles and configure files -echo --------------------------------------------- -echo - -# 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 \ - bin/VERSION \ - bin/runAppli \ - bin/Makefile \ - idl/Makefile \ - resources/Makefile \ - resources/SalomeApp.xml \ - src/Makefile \ - src/ATOMSOLV/Makefile \ - src/ATOMSOLVGUI/Makefile \ - ATOMSOLV_version.h \ - Makefile \ -]) diff --git a/src/ATOMSOLV/Makefile.am b/idl/CMakeLists.txt similarity index 54% rename from src/ATOMSOLV/Makefile.am rename to idl/CMakeLists.txt index de59635..297920f 100644 --- a/src/ATOMSOLV/Makefile.am +++ b/idl/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE +# Copyright (C) 2012-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 @@ -17,22 +17,28 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -include $(top_srcdir)/adm_local/unix/make_common_starter.am +INCLUDE(UseOmniORB) -# Library target -lib_LTLIBRARIES = libATOMSOLVEngine.la +INCLUDE_DIRECTORIES( + ${OMNIORB_INCLUDE_DIR} + ${KERNEL_INCLUDE_DIRS} + ${ATOMGEN_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} +) -# Library sources -dist_libATOMSOLVEngine_la_SOURCES = \ - ATOMSOLV.hxx \ - ATOMSOLV.cxx +SET(SalomeIDLATOMSOLV_IDLSOURCES + ATOMSOLV.idl +) -libATOMSOLVEngine_la_CPPFLAGS = \ - $(CORBA_CXXFLAGS) \ - $(CORBA_INCLUDES) \ - $(KERNEL_CXXFLAGS) \ - -I$(ATOMGEN_ROOT_DIR)/include/salome \ - -I$(top_builddir)/idl \ - -I$(top_builddir) +SET(_idl_include_dirs + ${KERNEL_ROOT_DIR}/idl/salome + ${ATOMGEN_ROOT_DIR}/idl/salome +) -libATOMSOLVEngine_la_LDFLAGS = ../../idl/libATOMSOLVIDL.la $(KERNEL_LDFLAGS) -lSalomeContainer -lOpUtil +SET(_idl_link_flags + ${KERNEL_SalomeIDLKernel} + ${ATOMGEN_SalomeIDLATOMGEN} +) + +OMNIORB_ADD_MODULE(SalomeIDLATOMSOLV "${SalomeIDLATOMSOLV_IDLSOURCES}" "${_idl_include_dirs}" "${_idl_link_flags}") +INSTALL(TARGETS SalomeIDLATOMSOLV EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) diff --git a/idl/Makefile.am b/idl/Makefile.am deleted file mode 100644 index a5b4cdc..0000000 --- a/idl/Makefile.am +++ /dev/null @@ -1,96 +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 -# - -# 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 = ATOMSOLV.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 = libATOMSOLVIDL.la - -# Sources built from idl files -nodist_libATOMSOLVIDL_la_SOURCES = ATOMSOLVSK.cc - -# header files must be exported: other modules have to use this library -nodist_salomeinclude_HEADERS = $(BASEIDL_FILES:%.idl=%.hh) - -libATOMSOLVIDL_la_CPPFLAGS = \ - -I$(top_builddir)/idl -I$(ATOMGEN_ROOT_DIR)/include/salome \ - @CORBA_CXXFLAGS@ @CORBA_INCLUDES@ @KERNEL_CXXFLAGS@ -libATOMSOLVIDL_la_LDFLAGS = -no-undefined -version-info=0:0:0 -libATOMSOLVIDL_la_LIBADD = $(STDLIB) @CORBA_LIBS@ $(KERNEL_LDFLAGS) -lSalomeIDLKernel -L$(ATOMGEN_ROOT_DIR)/lib/salome -lATOMGENIDL - -# 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$(ATOMGEN_ROOT_DIR)/idl/salome -IDLCXXFLAGS = -bcxx @IDLCXXFLAGS@ -I$(top_builddir)/idl/salome -I$(KERNEL_ROOT_DIR)/idl/salome -I$(ATOMGEN_ROOT_DIR)/idl/salome -IDLPYFLAGS = @IDLPYFLAGS@ -I$(KERNEL_ROOT_DIR)/idl/salome -I$(ATOMGEN_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 ATOMSOLV_ORB ; 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$(ATOMGEN_ROOT_DIR)/idl/salome $$dep 2>/dev/null | \ - sed 's/\.o/\SK.cc/' >>$@; \ - fi; \ - done ; - --include .depidl diff --git a/Makefile.am b/resources/CMakeLists.txt similarity index 55% rename from Makefile.am rename to resources/CMakeLists.txt index 01dc34e..39b2c11 100755 --- a/Makefile.am +++ b/resources/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,22 +20,20 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -include $(top_srcdir)/adm_local/unix/make_common_starter.am - -ACLOCAL_AMFLAGS = -I adm_local/unix/config_files \ - -I ${GUI_ROOT_DIR}/adm_local/unix/config_files \ - -I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files - -SUBDIRS = adm_local resources idl src bin - -DISTCLEANFILES = a.out aclocal.m4 configure local-install.sh - -salomeinclude_DATA = ATOMSOLV_version.h +SET(ATOMSOLV_RESOURCES_FILES + atom.png + ATOMSOLV.png + display.png + erase.png + ExecATOMSOLV.png + molecule.png + run.png + ATOMSOLVCatalog.xml + import.xpm +) -EXTRA_DIST += \ - build_configure \ - clean_configure \ - LICENCE +INSTALL(FILES ${ATOMSOLV_RESOURCES_FILES} DESTINATION ${SALOME_ATOMSOLV_INSTALL_RES_DATA}) -dist-hook: - rm -rf `find $(distdir) -name CVS` +MESSAGE(STATUS "Creation of ${CMAKE_CURRENT_BINARY_DIR}/SalomeApp.xml") +CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/SalomeApp.xml.in ${CMAKE_CURRENT_BINARY_DIR}/SalomeApp.xml @ONLY) +INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/SalomeApp.xml DESTINATION ${SALOME_ATOMSOLV_INSTALL_RES_DATA}) \ No newline at end of file diff --git a/resources/Makefile.am b/resources/Makefile.am deleted file mode 100644 index 7effc3d..0000000 --- a/resources/Makefile.am +++ /dev/null @@ -1,32 +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 - -dist_salomeres_DATA = \ - atom.png \ - ATOMSOLVCatalog.xml \ - ATOMSOLV.png \ - display.png \ - erase.png \ - ExecATOMSOLV.png \ - import.xpm \ - molecule.png \ - run.png \ - $(top_builddir)/resources/SalomeApp.xml diff --git a/resources/SalomeApp.xml.in b/resources/SalomeApp.xml.in index 229a518..8898b81 100644 --- a/resources/SalomeApp.xml.in +++ b/resources/SalomeApp.xml.in @@ -23,7 +23,7 @@ - +
diff --git a/src/ATOMSOLV/ATOMSOLV.cxx b/src/ATOMSOLV/ATOMSOLV.cxx index d53ca4c..7144bdc 100755 --- a/src/ATOMSOLV/ATOMSOLV.cxx +++ b/src/ATOMSOLV/ATOMSOLV.cxx @@ -85,7 +85,7 @@ CORBA::Boolean ATOMSOLV::processData( CORBA::Long studyID ) char* ATOMSOLV::getVersion() { -#if ATOMSOLV_DEVELOPMENT +#if defined(ATOMSOLV_DEVELOPMENT) return CORBA::string_dup(ATOMSOLV_VERSION_STR"dev"); #else return CORBA::string_dup(ATOMSOLV_VERSION_STR); diff --git a/src/ATOMSOLV/CMakeLists.txt b/src/ATOMSOLV/CMakeLists.txt new file mode 100755 index 0000000..a3fab59 --- /dev/null +++ b/src/ATOMSOLV/CMakeLists.txt @@ -0,0 +1,61 @@ +# 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} + ${KERNEL_INCLUDE_DIRS} + ${OMNIORB_INCLUDE_DIR} + ${ATOMGEN_INCLUDE_DIRS} + ${PROJECT_BINARY_DIR} + ${PROJECT_BINARY_DIR}/idl +) + +# libraries to link to +SET(_link_LIBRARIES + ${ATOMGEN_SalomeIDLATOMGEN} + ${KERNEL_SalomeContainer} + SalomeIDLATOMSOLV +) + +# --- headers --- + +# header files / no moc processing +SET(ATOMSOLV_HEADERS + ATOMSOLV.hxx +) + +# --- sources --- + +# sources / static +SET(ATOMSOLV_SOURCES + ATOMSOLV.cxx +) + +# --- rules --- + +ADD_LIBRARY(ATOMSOLVEngine ${ATOMSOLV_SOURCES}) +TARGET_LINK_LIBRARIES(ATOMSOLVEngine ${_link_LIBRARIES} ) +INSTALL(TARGETS ATOMSOLVEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) + +INSTALL(FILES ${ATOMSOLV_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS}) \ No newline at end of file diff --git a/src/ATOMSOLVGUI/CMakeLists.txt b/src/ATOMSOLVGUI/CMakeLists.txt new file mode 100644 index 0000000..b884c59 --- /dev/null +++ b/src/ATOMSOLVGUI/CMakeLists.txt @@ -0,0 +1,105 @@ +# 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( + ${CAS_INCLUDE_DIRS} + ${KERNEL_INCLUDE_DIRS} + ${GUI_INCLUDE_DIRS} + ${ATOMGEN_INCLUDE_DIRS} + ${QT_INCLUDES} + ${OMNIORB_INCLUDE_DIR} + ${VTK_INCLUDE_DIRS} + ${PROJECT_BINARY_DIR} + ${PROJECT_BINARY_DIR}/idl +) + +# additional preprocessor / compiler flags +ADD_DEFINITIONS( + ${QT_DEFINITIONS} + ${OMNIORB_DEFINITIONS} + ${CAS_DEFINITIONS} + ${OMNIORB_DEFINITIONS} +) + +# libraries to link to +SET(_link_LIBRARIES + ${GUI_CAM} + ${GUI_LightApp} + ${GUI_SalomeApp} + ${ATOMGEN_SalomeIDLATOMGEN} + SalomeIDLATOMSOLV +) + +# --- headers --- + +# header files / to be processed by moc +SET(_moc_HEADERS + ATOMSOLVGUI.h + ATOMSOLVGUI_TransparencyDlg.h +) + +# header files / no moc processing +SET(_other_HEADERS + ATOMSOLVGUI_DataModel.h + ATOMSOLVGUI_DataObject.h + ATOMSOLVGUI_Displayer.h + ATOMSOLVGUI_Selection.h +) + +# header files / to install +SET(ATOMSOLVGUI_HEADERS ${_moc_HEADERS} ${_other_HEADERS}) + +# --- sources --- + +# sources / moc wrappings +QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) + +# sources / static +SET(_other_SOURCES + ATOMSOLVGUI.cxx + ATOMSOLVGUI_TransparencyDlg.cxx + ATOMSOLVGUI_DataModel.cxx + ATOMSOLVGUI_DataObject.cxx + ATOMSOLVGUI_Displayer.cxx + ATOMSOLVGUI_Selection.cxx +) + +# sources / to compile +SET(ATOMSOLVGUI_SOURCES ${_other_SOURCES} ${_moc_SOURCES}) + +# --- resources --- + +# resource files / to be processed by lrelease +SET(_ts_RESOURCES + resources/ATOMSOLV_icons.ts + resources/ATOMSOLV_msg_en.ts +) + +# --- rules --- + +ADD_LIBRARY(ATOMSOLV ${ATOMSOLVGUI_SOURCES}) +TARGET_LINK_LIBRARIES(ATOMSOLV ${_link_LIBRARIES} ) +INSTALL(TARGETS ATOMSOLV EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) + +INSTALL(FILES ${ATOMSOLVGUI_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS}) +QT4_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_ATOMSOLV_INSTALL_RES_DATA}") diff --git a/src/ATOMSOLVGUI/Makefile.am b/src/ATOMSOLVGUI/Makefile.am deleted file mode 100644 index cffb03b..0000000 --- a/src/ATOMSOLVGUI/Makefile.am +++ /dev/null @@ -1,74 +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 - -# Library target -lib_LTLIBRARIES = libATOMSOLV.la - -# Library sources -dist_libATOMSOLV_la_SOURCES = \ - ATOMSOLVGUI.h \ - ATOMSOLVGUI.cxx \ - ATOMSOLVGUI_DataModel.cxx \ - ATOMSOLVGUI_DataModel.h \ - ATOMSOLVGUI_DataObject.cxx \ - ATOMSOLVGUI_DataObject.h \ - ATOMSOLVGUI_Displayer.cxx \ - ATOMSOLVGUI_Displayer.h \ - ATOMSOLVGUI_Selection.cxx \ - ATOMSOLVGUI_Selection.h \ - ATOMSOLVGUI_TransparencyDlg.cxx \ - ATOMSOLVGUI_TransparencyDlg.h - -# MOC pre-processing -MOC_FILES = \ - ATOMSOLVGUI_moc.cxx \ - ATOMSOLVGUI_TransparencyDlg_moc.cxx - -nodist_libATOMSOLV_la_SOURCES = $(MOC_FILES) - -# additionnal compilation flags -libATOMSOLV_la_CPPFLAGS = \ - $(CAS_CPPFLAGS) \ - $(BOOST_CPPFLAGS) \ - -I$(top_builddir) \ - -I$(top_builddir)/idl \ - $(KERNEL_CXXFLAGS) \ - $(GUI_CXXFLAGS) \ - -I$(ATOMGEN_ROOT_DIR)/include/salome \ - $(QT_INCLUDES) \ - $(CORBA_CXXFLAGS) $(CORBA_INCLUDES) \ - $(VTK_INCLUDES) - - -# additionnal linkage flags -libATOMSOLV_la_LDFLAGS = \ - $(GUI_LDFLAGS) -lLightApp \ - $(VTK_LIBS) - -libATOMSOLV_la_LIBADD = \ - ../../idl/libATOMSOLVIDL.la $(GUI_LDFLAGS) -lSalomeApp - -# -L $(ATOMGEN_ROOT_DIR)/lib/salome -lATOMGENIDL - -# resources files -nodist_salomeres_DATA = \ - ATOMSOLV_icons.qm \ - ATOMSOLV_msg_en.qm diff --git a/adm_local/unix/Makefile.am b/src/CMakeLists.txt old mode 100644 new mode 100755 similarity index 75% rename from adm_local/unix/Makefile.am rename to src/CMakeLists.txt index c68bae1..119c67c --- a/adm_local/unix/Makefile.am +++ b/src/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE +# 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,6 +17,18 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -include $(top_srcdir)/adm_local/unix/make_common_starter.am +## +# Common packages +## +SET(SUBDIRS_COMMON + ATOMSOLV ATOMSOLVGUI +) -SUBDIRS = config_files +SET(SUBDIRS + ${SUBDIRS_COMMON} +) + +FOREACH(dir ${SUBDIRS}) + ADD_SUBDIRECTORY(${dir}) +ENDFOREACH(dir ${SUBDIRS}) + -- 2.39.2