]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
CMake implementation pour split d install pour branchement a l IHM
authorEmmanuel STREBY <emmanuel.streby@opencascade.com>
Tue, 26 Feb 2019 09:40:57 +0000 (10:40 +0100)
committerEmmanuel STREBY <emmanuel.streby@opencascade.com>
Tue, 26 Feb 2019 09:40:57 +0000 (10:40 +0100)
15 files changed:
CMakeLists.txt [new file with mode: 0644]
bin/CMakeLists.txt [new file with mode: 0644]
doc/CMakeLists.txt [new file with mode: 0644]
doc/en/CMakeLists.txt [new file with mode: 0644]
doc/fr/CMakeLists.txt [new file with mode: 0644]
examples/CMakeLists.txt [new file with mode: 0644]
i18n/CMakeLists.txt [new file with mode: 0644]
idl/CMakeLists.txt [new file with mode: 0644]
resources/CMakeLists.txt [new file with mode: 0644]
src/CMakeLists.txt [new file with mode: 0644]
src/daComposant/CMakeLists.txt [new file with mode: 0644]
src/daEficas/CMakeLists.txt [new file with mode: 0644]
src/daSalome/CMakeLists.txt [new file with mode: 0644]
src/daSalome/daGUI/CMakeLists.txt [new file with mode: 0644]
test/CMakeLists.txt [new file with mode: 0644]

diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644 (file)
index 0000000..a791c12
--- /dev/null
@@ -0,0 +1,102 @@
+# Copyright (C) 2008-2019 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
+#
+# Author: Anthony Geay, anthony.geay@edf.fr, EDF R&D
+
+cmake_minimum_required(VERSION 2.6)
+
+# Ensure a proper linker behavior:
+CMAKE_POLICY(SET CMP0003 NEW)
+
+project(ADAO)
+
+include(CMakeDependentOption)
+
+option(ADAO_PYTHON_MODULE "Build and install ADAO python module files only." ON)
+option(ADAO_BUILD_DOC "Build and install ADAO documentation." ON)
+cmake_dependent_option(ADAO_SALOME_MODULE "Build and install ADAO SALOME module files based on ADAO python module." ON "NOT ADAO_PYTHON_MODULE" OFF)
+
+find_package(PythonInterp)
+
+if(NOT PYTHONINTERP_FOUND)
+  message(FATAL_ERROR "Python interp not found ! We absolutely need it !")
+endif(NOT PYTHONINTERP_FOUND)
+
+set(ADAO_SCRIPT_PYTHON "lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages")
+set(ADAO_SCRIPT_PYTHON_SALOME "${ADAO_SCRIPT_PYTHON}/salome")
+set(ADAO_LIB "lib/salome")
+set(ADAO_RES "share/salome/resources/adao")
+set(ADAO_BIN "bin/salome")
+set(ADAO_BIN_TEST "bin/salome/test")
+
+if(ADAO_PYTHON_MODULE)
+  
+  add_subdirectory(src)
+  
+else(ADAO_PYTHON_MODULE)
+
+  # ADAO_SALOME_MODULE
+  set(CONFIGURATION_ROOT_DIR $ENV{CONFIGURATION_ROOT_DIR} CACHE PATH "Path to the Salome CMake configuration files")
+  if(EXISTS ${CONFIGURATION_ROOT_DIR})
+    list(APPEND CMAKE_MODULE_PATH "${CONFIGURATION_ROOT_DIR}/cmake")
+    include(SalomeMacros)
+
+    if(ADAO_BUILD_DOC)
+      find_package(SalomeSphinx)
+      if(NOT SPHINX_FOUND)
+       message(FATAL_ERROR "Sphinx has not been found !")
+      endif(NOT SPHINX_FOUND)
+    endif(ADAO_BUILD_DOC)
+    
+  else()
+    message(FATAL_ERROR "We absolutely need the Salome CMake configuration files, please define CONFIGURATION_ROOT_DIR !")
+  endif()
+
+  find_package(SalomeOmniORB REQUIRED)
+  find_package(SalomeOmniORBPy REQUIRED)
+  find_package(SalomeKERNEL REQUIRED)
+  KERNEL_WITH_CORBA()
+  
+  if(NOT ADAO_PYTHON_ROOT_DIR)
+    message(FATAL_ERROR "ADAO_PYTHON_ROOT_DIR cmake variable has to be set if ADAO_SALOME_MODULE option is ON.")
+  endif(NOT ADAO_PYTHON_ROOT_DIR)
+  find_file(FILE_OF_ADAO_PYTHON_MODULE "daCore/__init__.py" PATHS "${ADAO_PYTHON_ROOT_DIR}/${ADAO_SCRIPT_PYTHON_SALOME}/adao")
+  if(NOT FILE_OF_ADAO_PYTHON_MODULE)
+    message(FATAL_ERROR "Could not locate daCore/__init__.py into specified ADAO_PYTHON_ROOT_DIR directory ! Sounds bad !")
+  endif(NOT FILE_OF_ADAO_PYTHON_MODULE)
+
+  if(NOT EFICAS_ROOT_DIR)
+    message(FATAL_ERROR "EFICAS_ROOT_DIR is absolutely needed !")
+  endif(NOT EFICAS_ROOT_DIR)
+  
+  find_file(FILE_OF_EFICAS "generator/__init__.py" PATHS ${EFICAS_ROOT_DIR})
+
+  if(NOT FILE_OF_EFICAS)
+    message(FATAL_ERROR "Could not locate generator/__init__.py into EFICAS_ROOT_DIR")
+  endif(NOT FILE_OF_EFICAS)
+  
+  add_subdirectory(src)
+  add_subdirectory(idl)
+  add_subdirectory(resources)
+  add_subdirectory(bin)
+  add_subdirectory(examples)
+  add_subdirectory(test)
+  add_subdirectory(i18n)
+  add_subdirectory(doc)
+  
+endif(ADAO_PYTHON_MODULE)
diff --git a/bin/CMakeLists.txt b/bin/CMakeLists.txt
new file mode 100644 (file)
index 0000000..3b4903c
--- /dev/null
@@ -0,0 +1,32 @@
+# Copyright (C) 2008-2019 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
+#
+# Author: Anthony Geay, anthony.geay@edf.fr, EDF R&D
+
+set(EFICAS_DIR "${EFICAS_ROOT_DIR}")
+set(PYTHON_SITE "${CMAKE_INSTALL_PREFIX}/${ADAO_SCRIPT_PYTHON}")
+SALOME_CONFIGURE_FILE(qtEficas_adao_study.py.in qtEficas_adao_study.py)
+
+install(FILES AdaoYacsSchemaCreator.py ${CMAKE_CURRENT_BINARY_DIR}/qtEficas_adao_study.py DESTINATION ${ADAO_BIN})
+
+INSTALL( CODE "MACRO(GENERATE_EFICAS_CATA_FOR_ADAO  PY_EXE_CATA ADAO_CATA_GEN_FILE OUTPUT_DIR CATA_ADD_PYTHONPATH)
+set(ENV{PYTHONPATH} \${CATA_ADD_PYTHONPATH}:\$ENV{PYTHONPATH})
+EXECUTE_PROCESS(COMMAND \${PY_EXE_CATA} \${ADAO_CATA_GEN_FILE} \${OUTPUT_DIR} ADAO_Cata_V0.py)
+ENDMACRO(GENERATE_EFICAS_CATA_FOR_ADAO)" )
+
+INSTALL(CODE "GENERATE_EFICAS_CATA_FOR_ADAO( \"${PYTHON_EXECUTABLE}\" \"${CMAKE_CURRENT_SOURCE_DIR}/AdaoCatalogGenerator.py\" \"${CMAKE_INSTALL_PREFIX}/${ADAO_SCRIPT_PYTHON_SALOME}/adao\" \"${CMAKE_INSTALL_PREFIX}/${ADAO_SCRIPT_PYTHON_SALOME}:${ADAO_PYTHON_ROOT_DIR}/${ADAO_SCRIPT_PYTHON}\" )")
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
new file mode 100644 (file)
index 0000000..3700988
--- /dev/null
@@ -0,0 +1,22 @@
+# Copyright (C) 2008-2019 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
+#
+# Author: Anthony Geay, anthony.geay@edf.fr, EDF R&D
+
+add_subdirectory(en)
+add_subdirectory(fr)
diff --git a/doc/en/CMakeLists.txt b/doc/en/CMakeLists.txt
new file mode 100644 (file)
index 0000000..a03b85f
--- /dev/null
@@ -0,0 +1,46 @@
+# Copyright (C) 2008-2019 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
+#
+# Author: Anthony Geay, anthony.geay@edf.fr, EDF R&D
+
+set(DOCLANG en)
+set(DOC_DESTINATION "share/doc/salome/gui/ADAO/${DOCLANG}")
+
+file(GLOB_RECURSE BEAUTIFUL_PNGS "${CMAKE_SOURCE_DIR}/doc/${DOCLANG}/*.png")
+install(FILES ${BEAUTIFUL_PNGS} DESTINATION ${ADAO_RES})
+file(COPY conf.py DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
+file(COPY ${CMAKE_SOURCE_DIR}/bin/module_version.py DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
+file(GLOB_RECURSE RST_FILES "${CMAKE_SOURCE_DIR}/doc/${DOCLANG}/*.rst")
+file(COPY ${RST_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
+file(COPY resources snippets images DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
+
+set(_cmd_options -c ${CMAKE_CURRENT_BINARY_DIR} -b html -d doctrees -D latex_paper_size=a4 ${CMAKE_CURRENT_BINARY_DIR} html)
+SALOME_GENERATE_ENVIRONMENT_SCRIPT(_cmd env_script "${SPHINX_EXECUTABLE}" "${_cmd_options}")      
+
+add_custom_target(en_tutorial_doc COMMAND ${_cmd})
+install(CODE "EXECUTE_PROCESS(COMMAND \"${CMAKE_COMMAND}\" --build ${PROJECT_BINARY_DIR} --target en_tutorial_doc)")
+
+file(GLOB_RECURSE BEAUTIFUL_PNGS2 "${CMAKE_SOURCE_DIR}/doc/${DOCLANG}/images/*.png")
+INSTALL(CODE "file(GLOB BEAUTIFUL_HTML \"${CMAKE_CURRENT_BINARY_DIR}/html/*.html\")
+file(COPY \${BEAUTIFUL_HTML} DESTINATION ${CMAKE_INSTALL_PREFIX}/${DOC_DESTINATION})")
+install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html/_static" DESTINATION ${DOC_DESTINATION})
+install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html/snippets" DESTINATION ${DOC_DESTINATION})
+install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html/_sources" DESTINATION ${DOC_DESTINATION})
+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/html/searchindex.js" DESTINATION ${DOC_DESTINATION})
+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/html/objects.inv" DESTINATION ${DOC_DESTINATION})
+install(FILES ${BEAUTIFUL_PNGS2} DESTINATION ${DOC_DESTINATION}/_images)
diff --git a/doc/fr/CMakeLists.txt b/doc/fr/CMakeLists.txt
new file mode 100644 (file)
index 0000000..b0654af
--- /dev/null
@@ -0,0 +1,46 @@
+# Copyright (C) 2008-2019 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
+#
+# Author: Anthony Geay, anthony.geay@edf.fr, EDF R&D
+
+set(DOCLANG fr)
+set(DOC_DESTINATION "share/doc/salome/gui/ADAO/${DOCLANG}")
+
+file(GLOB_RECURSE BEAUTIFUL_PNGS "${CMAKE_SOURCE_DIR}/doc/${DOCLANG}/*.png")
+install(FILES ${BEAUTIFUL_PNGS} DESTINATION ${ADAO_RES})
+file(COPY conf.py DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
+file(COPY ${CMAKE_SOURCE_DIR}/bin/module_version.py DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
+file(GLOB_RECURSE RST_FILES "${CMAKE_SOURCE_DIR}/doc/${DOCLANG}/*.rst")
+file(COPY ${RST_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
+file(COPY resources snippets images DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
+
+set(_cmd_options -c ${CMAKE_CURRENT_BINARY_DIR} -b html -d doctrees -D latex_paper_size=a4 ${CMAKE_CURRENT_BINARY_DIR} html)
+SALOME_GENERATE_ENVIRONMENT_SCRIPT(_cmd env_script "${SPHINX_EXECUTABLE}" "${_cmd_options}")      
+
+add_custom_target(fr_tutorial_doc COMMAND ${_cmd})
+install(CODE "EXECUTE_PROCESS(COMMAND \"${CMAKE_COMMAND}\" --build ${PROJECT_BINARY_DIR} --target fr_tutorial_doc)")
+
+file(GLOB_RECURSE BEAUTIFUL_PNGS2 "${CMAKE_SOURCE_DIR}/doc/${DOCLANG}/images/*.png")
+INSTALL(CODE "file(GLOB BEAUTIFUL_HTML \"${CMAKE_CURRENT_BINARY_DIR}/html/*.html\")
+file(COPY \${BEAUTIFUL_HTML} DESTINATION ${CMAKE_INSTALL_PREFIX}/${DOC_DESTINATION})")
+install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html/_static" DESTINATION ${DOC_DESTINATION})
+install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html/snippets" DESTINATION ${DOC_DESTINATION})
+install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html/_sources" DESTINATION ${DOC_DESTINATION})
+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/html/searchindex.js" DESTINATION ${DOC_DESTINATION})
+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/html/objects.inv" DESTINATION ${DOC_DESTINATION})
+install(FILES ${BEAUTIFUL_PNGS2} DESTINATION ${DOC_DESTINATION}/_images)
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
new file mode 100644 (file)
index 0000000..efa70f4
--- /dev/null
@@ -0,0 +1,84 @@
+# Copyright (C) 2008-2019 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
+#
+# Author: Anthony Geay, anthony.geay@edf.fr, EDF R&D
+
+set(prefix ${CMAKE_INSTALL_PREFIX})
+
+SALOME_CONFIGURE_FILE(daSalome/test003_ADAO_JDC_using_scripts.comm.in test003_ADAO_JDC_using_scripts.comm)
+SALOME_CONFIGURE_FILE(daSalome/test003_bis_ADAO_JDC_using_user_data_init.comm.in test003_bis_ADAO_JDC_using_user_data_init.comm)
+SALOME_CONFIGURE_FILE(daSalome/test005_ADAO_Operators.comm.in test005_ADAO_Operators.comm)
+
+SALOME_CONFIGURE_FILE(daSalome/test004_ADAO_JDC_using_scripts.comm.in test004_ADAO_JDC_using_scripts.comm)
+SALOME_CONFIGURE_FILE(daSalome/test006_Observers.comm.in test006_Observers.comm)
+
+
+SALOME_CONFIGURE_FILE(daSalome/test003_ADAO_JDC_using_scripts.py.in test003_ADAO_JDC_using_scripts.py)
+SALOME_CONFIGURE_FILE(daSalome/test003_bis_ADAO_JDC_using_user_data_init.py.in test003_bis_ADAO_JDC_using_user_data_init.py)
+SALOME_CONFIGURE_FILE(daSalome/test005_ADAO_Operators.py.in test005_ADAO_Operators.py)
+
+SALOME_CONFIGURE_FILE(daSalome/test004_ADAO_JDC_using_scripts.py.in test004_ADAO_JDC_using_scripts.py)
+SALOME_CONFIGURE_FILE(daSalome/test006_Observers.py.in test006_Observers.py)
+
+set(EXAMPLES_FILES_TO_INSTALL
+  daSalome/test001_ADAO_JDC_using_strings.comm
+  daSalome/test001_ADAO_JDC_using_strings.py
+  daSalome/test002_ADAO_JDC_using_strings.comm
+  daSalome/test002_ADAO_JDC_using_strings.py
+  ${CMAKE_CURRENT_BINARY_DIR}/test003_ADAO_JDC_using_scripts.comm
+  ${CMAKE_CURRENT_BINARY_DIR}/test003_ADAO_JDC_using_scripts.py
+  daSalome/test003_ADAO_scripts_for_JDC.py
+  ${CMAKE_CURRENT_BINARY_DIR}/test003_bis_ADAO_JDC_using_user_data_init.comm
+  ${CMAKE_CURRENT_BINARY_DIR}/test003_bis_ADAO_JDC_using_user_data_init.py
+  daSalome/test003_bis_ADAO_user_data_init.py
+  ${CMAKE_CURRENT_BINARY_DIR}/test004_ADAO_JDC_using_scripts.comm
+  ${CMAKE_CURRENT_BINARY_DIR}/test004_ADAO_JDC_using_scripts.py
+  ${CMAKE_CURRENT_BINARY_DIR}/test005_ADAO_Operators.comm
+  ${CMAKE_CURRENT_BINARY_DIR}/test005_ADAO_Operators.py
+  daSalome/test005_ADAO_scripts_for_JDC.py
+  ${CMAKE_CURRENT_BINARY_DIR}/test006_Observers.comm
+  ${CMAKE_CURRENT_BINARY_DIR}/test006_Observers.py
+  daSalome/test006_Observers_Observation_Operator.py
+  daSalome/test006_Observers_observer_with_file.py
+  daSalome/test006_Observers_var.py
+  daSalome/test008_ADAO_Elementary_GradientTest.comm
+  daSalome/test008_ADAO_Elementary_GradientTest.py
+  daSalome/test009_ADAO_Simple_GradientTest.comm
+  daSalome/test009_ADAO_Simple_GradientTest.py
+  daSalome/test010_ADAO_Simple_AdjointTest.comm
+  daSalome/test010_ADAO_Simple_AdjointTest.py
+  )
+
+install(FILES ${EXAMPLES_FILES_TO_INSTALL} DESTINATION "share/salome/adao_examples/daSalome")
+
+SALOME_CONFIGURE_FILE(daSkeletons/External_data_definition_by_scripts/ADAO_Case.comm.in ADAO_Case.comm)
+
+set(SKELETON_FILES_TO_INSTALL
+  ${CMAKE_CURRENT_BINARY_DIR}/ADAO_Case.comm
+  daSkeletons/External_data_definition_by_scripts/Physical_data_and_covariance_matrices.py
+  daSkeletons/External_data_definition_by_scripts/Script_AlgorithmParameters.py
+  daSkeletons/External_data_definition_by_scripts/Script_Background_xb.py
+  daSkeletons/External_data_definition_by_scripts/Script_ObservationOperator_H.py
+  daSkeletons/External_data_definition_by_scripts/Script_UserPostAnalysis.py
+  daSkeletons/External_data_definition_by_scripts/Physical_simulation_functions.py
+  daSkeletons/External_data_definition_by_scripts/Script_BackgroundError_B.py
+  daSkeletons/External_data_definition_by_scripts/Script_ObservationError_R.py
+  daSkeletons/External_data_definition_by_scripts/Script_Observation_yo.py
+  )
+
+install(FILES ${SKELETON_FILES_TO_INSTALL} DESTINATION "share/salome/adao_examples/daSkeletons/External_data_definition_by_scripts")
diff --git a/i18n/CMakeLists.txt b/i18n/CMakeLists.txt
new file mode 100644 (file)
index 0000000..0b917eb
--- /dev/null
@@ -0,0 +1,21 @@
+# Copyright (C) 2008-2019 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
+#
+# Author: Anthony Geay, anthony.geay@edf.fr, EDF R&D
+
+install(FILES adao_en.qm adao_fr.qm DESTINATION ${ADAO_RES})
diff --git a/idl/CMakeLists.txt b/idl/CMakeLists.txt
new file mode 100644 (file)
index 0000000..d20067c
--- /dev/null
@@ -0,0 +1,38 @@
+# Copyright (C) 2008-2019 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
+#
+# Author: Anthony Geay, anthony.geay@edf.fr, EDF R&D
+
+include(${CONFIGURATION_ROOT_DIR}/cmake/UseOmniORB.cmake)
+
+include_directories(
+  ${KERNEL_INCLUDE_DIRS}
+  ${OMNIORB_INCLUDE_DIR}
+  ${CMAKE_CURRENT_BINARY_DIR}
+  )
+
+set(IDL_INCLUDE_DIRS
+  ${KERNEL_ROOT_DIR}/idl/salome
+  ${CMAKE_CURRENT_SOURCE_DIR}
+  ${CMAKE_CURRENT_BINARY_DIR}
+  )
+
+OMNIORB_ADD_MODULE(ADAO_COMPONENT ADAO_COMPONENT.idl "${IDL_INCLUDE_DIRS}")
+add_definitions(${COMMON_FLAGS})
+target_link_libraries(ADAO_COMPONENT ${OMNIORB_LIBRARIES})
+install(TARGETS ADAO_COMPONENT DESTINATION ${ADAO_LIB})
\ No newline at end of file
diff --git a/resources/CMakeLists.txt b/resources/CMakeLists.txt
new file mode 100644 (file)
index 0000000..c815e77
--- /dev/null
@@ -0,0 +1,21 @@
+# Copyright (C) 2008-2019 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
+#
+# Author: Anthony Geay, anthony.geay@edf.fr, EDF R&D
+
+install(FILES ADAOCatalog.xml ADAOSchemaCatalog.xml SalomeApp.xml DESTINATION ${ADAO_RES})
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644 (file)
index 0000000..0d7714c
--- /dev/null
@@ -0,0 +1,33 @@
+# Copyright (C) 2008-2019 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
+#
+# Author: Anthony Geay, anthony.geay@edf.fr, EDF R&D
+
+if(ADAO_SALOME_MODULE)
+  
+  install(FILES daSalome/adaoBuilder.py daSalome/__init__.py DESTINATION "${ADAO_SCRIPT_PYTHON_SALOME}/adao")
+  add_subdirectory(daComposant)
+  add_subdirectory(daSalome)
+  add_subdirectory(daEficas)
+  
+else(ADAO_SALOME_MODULE)
+  
+  install(FILES daSalome/adaoBuilder.py daSalome/__init__.py DESTINATION "${ADAO_SCRIPT_PYTHON_SALOME}/adao")
+  add_subdirectory(daComposant)
+
+endif(ADAO_SALOME_MODULE)
diff --git a/src/daComposant/CMakeLists.txt b/src/daComposant/CMakeLists.txt
new file mode 100644 (file)
index 0000000..9e076b4
--- /dev/null
@@ -0,0 +1,21 @@
+# Copyright (C) 2008-2019 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
+#
+# Author: Anthony Geay, anthony.geay@edf.fr, EDF R&D
+
+install(DIRECTORY daCore daAlgorithms daNumerics DESTINATION ${ADAO_SCRIPT_PYTHON_SALOME}/adao)
diff --git a/src/daEficas/CMakeLists.txt b/src/daEficas/CMakeLists.txt
new file mode 100644 (file)
index 0000000..d38a2a5
--- /dev/null
@@ -0,0 +1,48 @@
+# Copyright (C) 2008-2019 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
+#
+# Author: Anthony Geay, anthony.geay@edf.fr, EDF R&D
+
+set(EFICAS_DIR "${EFICAS_ROOT_DIR}")
+
+SALOME_CONFIGURE_FILE(prefs_ADAO.py.in prefs_ADAO.py)
+  
+set(DAEFICAS_FILES
+  configuration_ADAO.py
+  convert_adao.py
+  generator_adao.py
+  __init__.py
+  ${CMAKE_CURRENT_BINARY_DIR}/prefs_ADAO.py
+  prefs.py
+  traduitADAOsansToV9_3_0.py
+  traduitADAOV7_4_0ToV9_3_0.py
+  traduitADAOV7_5_0ToV9_3_0.py
+  traduitADAOV7_5_1ToV9_3_0.py
+  traduitADAOV7_6_0ToV9_3_0.py
+  traduitADAOV7_7_0ToV9_3_0.py
+  traduitADAOV7_8_0ToV9_3_0.py
+  traduitADAOV8_1_0ToV9_3_0.py
+  traduitADAOV8_2_0ToV9_3_0.py
+  traduitADAOV8_3_0ToV9_3_0.py
+  traduitADAOV8_4_0ToV9_3_0.py
+  traduitADAOV8_5_0ToV9_3_0.py
+  traduitADAOV8_6_0ToV9_3_0.py
+  traduitADAOV9_2_0ToV9_3_0.py
+  )
+
+install(FILES ${DAEFICAS_FILES} DESTINATION "${ADAO_SCRIPT_PYTHON_SALOME}/adao/daEficas")
diff --git a/src/daSalome/CMakeLists.txt b/src/daSalome/CMakeLists.txt
new file mode 100644 (file)
index 0000000..96080ab
--- /dev/null
@@ -0,0 +1,23 @@
+# Copyright (C) 2008-2019 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
+#
+# Author: Anthony Geay, anthony.geay@edf.fr, EDF R&D
+
+add_subdirectory(daGUI)
+
+install(DIRECTORY daYacsSchemaCreator daYacsIntegration DESTINATION "${ADAO_SCRIPT_PYTHON_SALOME}/adao")
diff --git a/src/daSalome/daGUI/CMakeLists.txt b/src/daSalome/daGUI/CMakeLists.txt
new file mode 100644 (file)
index 0000000..23373b1
--- /dev/null
@@ -0,0 +1,27 @@
+# Copyright (C) 2008-2019 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
+#
+# Author: Anthony Geay, anthony.geay@edf.fr, EDF R&D
+
+install(FILES ADAOGUI.py ADAO.py DESTINATION ${ADAO_SCRIPT_PYTHON_SALOME})
+
+install(FILES daUtils/__init__.py daUtils/adaoEficasEvent.py daUtils/adaoLogger.py daUtils/enumerate.py DESTINATION "${ADAO_SCRIPT_PYTHON_SALOME}/adao/daUtils")
+
+install(FILES daGuiImpl/__init__.py daGuiImpl/ADAOGUI_impl.py daGuiImpl/adaoGuiManager.py daGuiImpl/adaoGuiHelper.py daGuiImpl/adaoModuleHelper.py daGuiImpl/adaoStudyEditor.py daGuiImpl/adaoCase.py DESTINATION "${ADAO_SCRIPT_PYTHON_SALOME}/adao/daGuiImpl")
+
+install(FILES daEficasWrapper/__init__.py daEficasWrapper/adaoEficasWrapper.py DESTINATION "${ADAO_SCRIPT_PYTHON_SALOME}/adao/daEficasWrapper")
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
new file mode 100644 (file)
index 0000000..1d10643
--- /dev/null
@@ -0,0 +1,25 @@
+# Copyright (C) 2008-2019 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
+#
+# Author: Anthony Geay, anthony.geay@edf.fr, EDF R&D
+
+SALOME_CONFIGURE_FILE(CTestTestfileInstall.cmake.in CTestTestfile.cmake)
+
+install(DIRECTORY test1001 test1002 test6701 test6702 test6703 test6704 test6711 test6901 test6902 test6903 test6904 DESTINATION ${ADAO_BIN_TEST})
+
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/CTestTestfile.cmake DESTINATION ${ADAO_BIN_TEST})