From 7a076d6d110b6d05ec92e64bdd72325e1d9b7ae1 Mon Sep 17 00:00:00 2001 From: inv Date: Thu, 3 Oct 2013 07:53:08 +0000 Subject: [PATCH] Synchronize adm files --- .../cmake_files/FindSalomeBoost.cmake | 2 ++ .../cmake_files/FindSalomeCppUnit.cmake | 2 ++ .../cmake_files/FindSalomeHDF5.cmake | 2 ++ .../cmake_files/FindSalomeLibXml2.cmake | 1 + .../cmake_files/FindSalomePython.cmake | 2 ++ .../cmake_files/SalomeMacros.cmake | 17 +++++++++++++++++ 6 files changed, 26 insertions(+) diff --git a/adm_local_without_kernel/cmake_files/FindSalomeBoost.cmake b/adm_local_without_kernel/cmake_files/FindSalomeBoost.cmake index 5cbb03c41..eedb4f1c7 100644 --- a/adm_local_without_kernel/cmake_files/FindSalomeBoost.cmake +++ b/adm_local_without_kernel/cmake_files/FindSalomeBoost.cmake @@ -43,3 +43,5 @@ ENDIF() IF(WIN32) SET(BOOST_DEFINITIONS -DBOOST_DISABLE_ASSERTS) ENDIF() + +#SALOME_ACCUMULATE_HEADERS(Boost_INCLUDE_DIRS) diff --git a/adm_local_without_kernel/cmake_files/FindSalomeCppUnit.cmake b/adm_local_without_kernel/cmake_files/FindSalomeCppUnit.cmake index cd3c5ce4b..4eaf46eed 100644 --- a/adm_local_without_kernel/cmake_files/FindSalomeCppUnit.cmake +++ b/adm_local_without_kernel/cmake_files/FindSalomeCppUnit.cmake @@ -26,3 +26,5 @@ SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(CppUnit CPPUNIT_INCLUDE_DIRS 1) MARK_AS_ADVANCED(CPPUNIT_INCLUDE_DIRS CPPUNIT_LIBRARIES CPPUNIT_CONFIG_BIN CPPUNIT_SUBLIB_cppunit CPPUNIT_SUBLIB_dl) + +#SALOME_ACCUMULATE_HEADERS(CPPUNIT_INCLUDE_DIRS) diff --git a/adm_local_without_kernel/cmake_files/FindSalomeHDF5.cmake b/adm_local_without_kernel/cmake_files/FindSalomeHDF5.cmake index 9b25dbeb2..24be3f1f5 100644 --- a/adm_local_without_kernel/cmake_files/FindSalomeHDF5.cmake +++ b/adm_local_without_kernel/cmake_files/FindSalomeHDF5.cmake @@ -42,6 +42,8 @@ IF(NOT DEFINED HDF5_LIBRARIES) SET(HDF5_LIBRARIES hdf5) ENDIF() +#SALOME_ACCUMULATE_HEADERS(HDF5_INCLUDE_DIRS) + ## ## 7. Specific to HDF5 only: ## Expose MPI configuration to the rest of the world diff --git a/adm_local_without_kernel/cmake_files/FindSalomeLibXml2.cmake b/adm_local_without_kernel/cmake_files/FindSalomeLibXml2.cmake index a12966926..78019255e 100644 --- a/adm_local_without_kernel/cmake_files/FindSalomeLibXml2.cmake +++ b/adm_local_without_kernel/cmake_files/FindSalomeLibXml2.cmake @@ -28,3 +28,4 @@ ELSE() ENDIF() #MARK_AS_ADVANCED() +#SALOME_ACCUMULATE_HEADERS(LIBXML2_INCLUDE_DIR) diff --git a/adm_local_without_kernel/cmake_files/FindSalomePython.cmake b/adm_local_without_kernel/cmake_files/FindSalomePython.cmake index 7704148de..5c1f6e87c 100644 --- a/adm_local_without_kernel/cmake_files/FindSalomePython.cmake +++ b/adm_local_without_kernel/cmake_files/FindSalomePython.cmake @@ -173,3 +173,5 @@ ELSE() ENDIF() +#SALOME_ACCUMULATE_HEADERS(PYTHON_INCLUDE_DIR) + diff --git a/adm_local_without_kernel/cmake_files/SalomeMacros.cmake b/adm_local_without_kernel/cmake_files/SalomeMacros.cmake index 6167a1290..a156c08b0 100755 --- a/adm_local_without_kernel/cmake_files/SalomeMacros.cmake +++ b/adm_local_without_kernel/cmake_files/SalomeMacros.cmake @@ -615,3 +615,20 @@ MACRO(SALOME_XVERSION pkg) OUTPUT_VARIABLE ${_pkg_UC}_XVERSION) ENDIF() ENDMACRO(SALOME_XVERSION) + +######################################################################### +# SALOME_ACCUMULATE_HEADERS() +# +# This macro is called in the various FindSalomeXYZ.cmake modules to accumulate +# internally the list of include headers to be saved for future export. +# The full set of include is saved in a variable called +# _${PROJECT_NAME}_EXTRA_HEADERS +# +MACRO(SALOME_ACCUMULATE_HEADERS lst) + FOREACH(l IN LISTS ${lst}) + LIST(FIND _${PROJECT_NAME}_EXTRA_HEADERS "${l}" _res) + IF(_res EQUAL "-1") + LIST(APPEND _${PROJECT_NAME}_EXTRA_HEADERS "${l}") + ENDIF() + ENDFOREACH() +ENDMACRO(SALOME_ACCUMULATE_HEADERS) -- 2.39.2