set(ADAO_BIN "bin/salome")
set(ADAO_BIN_TEST "bin/salome/test")
+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)
+else()
+ message(FATAL_ERROR "We absolutely need the Salome CMake configuration files, please define CONFIGURATION_ROOT_DIR !")
+endif()
+
if(ADAO_PYTHON_MODULE)
+
+ 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)
add_subdirectory(src)
+ add_subdirectory(resources)
+ add_subdirectory(bin)
+ add_subdirectory(test)
+ add_subdirectory(i18n)
+ add_subdirectory(doc)
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)
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")
+ find_file(FILE_OF_ADAO_PYTHON_MODULE "daCore/__init__.py" PATHS "${ADAO_PYTHON_ROOT_DIR}/${ADAO_SCRIPT_PYTHON}/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)
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)
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/daEficas\" \"${CMAKE_INSTALL_PREFIX}/${ADAO_SCRIPT_PYTHON_SALOME}:${ADAO_PYTHON_ROOT_DIR}/${ADAO_SCRIPT_PYTHON}\" )")
+INSTALL(CODE "GENERATE_EFICAS_CATA_FOR_ADAO( \"${PYTHON_EXECUTABLE}\" \"${CMAKE_CURRENT_SOURCE_DIR}/AdaoCatalogGenerator.py\" \"${CMAKE_INSTALL_PREFIX}/${ADAO_SCRIPT_PYTHON}/adao/daEficas\" \"${CMAKE_INSTALL_PREFIX}/${ADAO_SCRIPT_PYTHON}\" )")
#
# Author: Anthony Geay, anthony.geay@edf.fr, EDF R&D
-install(FILES ADAOCatalog.xml ADAOSchemaCatalog.xml SalomeApp.xml DESTINATION ${ADAO_RES})
+if(ADAO_SALOME_MODULE)
+ install(FILES SalomeApp.xml DESTINATION ${ADAO_RES})
+else(ADAO_SALOME_MODULE)
+ install(FILES ADAOCatalog.xml ADAOSchemaCatalog.xml DESTINATION ${ADAO_RES})
+endif(ADAO_SALOME_MODULE)
</section>
<section name="resources">
<!-- Module resources -->
- <parameter name="ADAO" value="${ADAO_ROOT_DIR}/share/salome/resources/adao"/>
+ <parameter name="ADAO" value="${ADAO_ENGINE_ROOT_DIR}/share/salome/resources/adao"/>
</section>
<section name="adao_help">
- <parameter name="User's Guide/%1 module/(EN) User's Guide" value="${ADAO_ROOT_DIR}/share/doc/salome/gui/ADAO/en/index.html"/>
- <parameter name="User's Guide/%1 module/(FR) Guide de l'utilisateur" value="${ADAO_ROOT_DIR}/share/doc/salome/gui/ADAO/fr/index.html"/>
+ <parameter name="User's Guide/%1 module/(EN) User's Guide" value="${ADAO_ENGINE_ROOT_DIR}/share/doc/salome/gui/ADAO/en/index.html"/>
+ <parameter name="User's Guide/%1 module/(FR) Guide de l'utilisateur" value="${ADAO_ENGINE_ROOT_DIR}/share/doc/salome/gui/ADAO/fr/index.html"/>
</section>
</document>
if(ADAO_SALOME_MODULE)
- install(FILES daSalome/adaoBuilder.py daSalome/__init__.py DESTINATION "${ADAO_SCRIPT_PYTHON_SALOME}/adao")
- add_subdirectory(daComposant)
+ #install(FILES daSalome/adaoBuilder.py daSalome/__init__.py DESTINATION "${ADAO_SCRIPT_PYTHON_SALOME}/adao")
add_subdirectory(daSalome)
- add_subdirectory(daEficas)
else(ADAO_SALOME_MODULE)
- install(FILES daSalome/adaoBuilder.py daSalome/__init__.py DESTINATION "${ADAO_SCRIPT_PYTHON_SALOME}/adao")
+ #install(FILES daSalome/adaoBuilder.py daSalome/__init__.py DESTINATION "${ADAO_SCRIPT_PYTHON_SALOME}/adao")
+ add_subdirectory(daSalome)
add_subdirectory(daComposant)
+ add_subdirectory(daEficas)
endif(ADAO_SALOME_MODULE)
#
# Author: Anthony Geay, anthony.geay@edf.fr, EDF R&D
-install(DIRECTORY daCore daAlgorithms daNumerics DESTINATION ${ADAO_SCRIPT_PYTHON_SALOME}/adao)
+install(DIRECTORY daCore daAlgorithms daNumerics DESTINATION ${ADAO_SCRIPT_PYTHON}/adao)
traduitADAOV9_2_0ToV9_3_0.py
)
-install(FILES ${DAEFICAS_FILES} DESTINATION "${ADAO_SCRIPT_PYTHON_SALOME}/adao/daEficas")
+install(FILES ${DAEFICAS_FILES} DESTINATION "${ADAO_SCRIPT_PYTHON}/adao/daEficas")
add_subdirectory(daGUI)
-install(DIRECTORY daYacsSchemaCreator daYacsIntegration DESTINATION "${ADAO_SCRIPT_PYTHON_SALOME}/adao")
+if( NOT ADAO_SALOME_MODULE)
+ install(DIRECTORY daYacsSchemaCreator daYacsIntegration DESTINATION "${ADAO_SCRIPT_PYTHON}/adao")
+ install(FILES __init__.py adaoBuilder.py DESTINATION "${ADAO_SCRIPT_PYTHON}/adao")
+
+endif(ADAO_SALOME_MODULE)
#
# Author: Anthony Geay, anthony.geay@edf.fr, EDF R&D
-install(FILES ADAOGUI.py ADAO.py DESTINATION ${ADAO_SCRIPT_PYTHON_SALOME})
+if(ADAO_SALOME_MODULE)
-install(FILES daUtils/__init__.py daUtils/adaoEficasEvent.py daUtils/adaoLogger.py daUtils/enumerate.py DESTINATION "${ADAO_SCRIPT_PYTHON_SALOME}/adao/daUtils")
+ install(FILES ADAOGUI.py ADAO.py DESTINATION ${ADAO_SCRIPT_PYTHON_SALOME})
+
+else(ADAO_SALOME_MODULE)
-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 daUtils/__init__.py daUtils/adaoEficasEvent.py daUtils/adaoLogger.py daUtils/enumerate.py DESTINATION "${ADAO_SCRIPT_PYTHON}/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}/adao/daGuiImpl")
+
+ install(FILES daEficasWrapper/__init__.py daEficasWrapper/adaoEficasWrapper.py DESTINATION "${ADAO_SCRIPT_PYTHON}/adao/daEficasWrapper")
+
+endif(ADAO_SALOME_MODULE)
-install(FILES daEficasWrapper/__init__.py daEficasWrapper/adaoEficasWrapper.py DESTINATION "${ADAO_SCRIPT_PYTHON_SALOME}/adao/daEficasWrapper")