]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
CMake: using SALOME_ACCUMULATE_HEADERS() to populate the complete list of includes...
authorbruneton <bruneton>
Mon, 7 Oct 2013 07:43:14 +0000 (07:43 +0000)
committerbruneton <bruneton>
Mon, 7 Oct 2013 07:43:14 +0000 (07:43 +0000)
13 files changed:
SalomeKERNELConfig.cmake.in
salome_adm/cmake_files/FindSalomeBoost.cmake
salome_adm/cmake_files/FindSalomeCAS.cmake
salome_adm/cmake_files/FindSalomeCppUnit.cmake
salome_adm/cmake_files/FindSalomeHDF5.cmake
salome_adm/cmake_files/FindSalomeLibBatch.cmake
salome_adm/cmake_files/FindSalomeLibXml2.cmake
salome_adm/cmake_files/FindSalomeMEDFile.cmake
salome_adm/cmake_files/FindSalomeMPI.cmake
salome_adm/cmake_files/FindSalomeOmniORB.cmake
salome_adm/cmake_files/FindSalomePThread.cmake
salome_adm/cmake_files/FindSalomePython.cmake
salome_adm/cmake_files/SalomeMacros.cmake

index 60fa8cc39f2e4dddac6a622f2222f0672dafa441..7de8498ff4f2608193860bf4b7ce6e9ae0844008 100644 (file)
@@ -48,7 +48,7 @@ SET_AND_CHECK(KERNEL_ROOT_DIR_EXP "@PACKAGE_CMAKE_INSTALL_PREFIX@")
 
 # Include directories and definitions
 SET_AND_CHECK(KERNEL_INCLUDE_DIRS "${KERNEL_ROOT_DIR_EXP}/@SALOME_INSTALL_HEADERS@")
-#SET(KERNEL_INCLUDE_DIRS "${KERNEL_INCLUDE_DIRS};@_SalomeKERNEL_EXTRA_HEADERS@")
+SET(KERNEL_INCLUDE_DIRS "${KERNEL_INCLUDE_DIRS};@_SalomeKERNEL_EXTRA_HEADERS@")
 SET(KERNEL_DEFINITIONS)
 
 #### Now the specificities
@@ -85,12 +85,6 @@ IF(SALOME_USE_LIBBATCH)
   SET_AND_CHECK(LIBBATCH_ROOT_DIR_EXP "@PACKAGE_LIBBATCH_ROOT_DIR@")
 ENDIF()
 
-# We need to export Boost_INCLUDE_DIRS because dependent projects may use header file
-# SALOMEDSClient_definitions.hxx that depends on Boost shared pointers
-SET_AND_CHECK(BOOST_ROOT_DIR_EXP    "@PACKAGE_BOOST_ROOT_DIR@")
-SET(KERNEL_INCLUDE_DIRS "${KERNEL_INCLUDE_DIRS};@Boost_INCLUDE_DIRS@")
-SET(KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS};@BOOST_DEFINITIONS@")
-
 SET_AND_CHECK(PTHREAD_ROOT_DIR_EXP  "@PACKAGE_PTHREAD_ROOT_DIR@")
 SET_AND_CHECK(HDF5_ROOT_DIR_EXP     "@PACKAGE_HDF5_ROOT_DIR@")
 SET_AND_CHECK(LIBXML2_ROOT_DIR_EXP  "@PACKAGE_LIBXML2_ROOT_DIR@")
index 93ba717ec7ecbda59e68853549030a95a9ffec1c..f93a88afa5550f8fa0f95a4f4eb5669821c0f5e8 100644 (file)
@@ -45,4 +45,4 @@ IF(WIN32)
   SET(BOOST_DEFINITIONS -DBOOST_DISABLE_ASSERTS)
 ENDIF()
 
-#SALOME_ACCUMULATE_HEADERS(Boost_INCLUDE_DIRS)
+SALOME_ACCUMULATE_HEADERS(Boost_INCLUDE_DIRS)
index 99e00f8bafa5f05204e47b461933a0187a2484d9..91bf9254922d9c3b95e13e0a91476094a0fa2b3e 100644 (file)
@@ -45,3 +45,7 @@ ELSE()
     SET(CAS_STDPLUGIN TKStdSchema)
   ENDIF()
 ENDIF()
+
+SALOME_ACCUMULATE_HEADERS(CAS_INCLUDE_DIRS)
+
+
index 4eaf46eed9bb52399a019c83b90fcecdab3f18a3..e8a5527e9c8c3f77cdee84b7d51d75dffa874b31 100644 (file)
@@ -27,4 +27,4 @@
 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)
+SALOME_ACCUMULATE_HEADERS(CPPUNIT_INCLUDE_DIRS)
index 24be3f1f5fa9b494e3a3dad64bae89e12a521050..c6460a944104d631640f746eec4bc20f922dcd4f 100644 (file)
@@ -42,7 +42,7 @@ IF(NOT DEFINED HDF5_LIBRARIES)
   SET(HDF5_LIBRARIES hdf5)
 ENDIF()
 
-#SALOME_ACCUMULATE_HEADERS(HDF5_INCLUDE_DIRS)
+SALOME_ACCUMULATE_HEADERS(HDF5_INCLUDE_DIRS)
 
 ##
 ## 7. Specific to HDF5 only:
index 6922b184fe3fbb44cbee66413e62cf282937ad3d..d7ce2e54e75177aea8badb2fd46d92693d5337fd 100644 (file)
@@ -27,5 +27,5 @@
 SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(LibBatch LIBBATCH_ROOT_DIR_EXP 0)
 #MARK_AS_ADVANCED()
 
-#SALOME_ACCUMULATE_HEADERS(LIBBATCH_INCLUDE_DIRS)
+SALOME_ACCUMULATE_HEADERS(LIBBATCH_INCLUDE_DIRS)
 
index 78019255e8a261e3e0d74fdee7a3af0f56fc47ee..c736b2e6307b4e074604e36d0b2c12ca77b8fcdf 100644 (file)
@@ -28,4 +28,4 @@ ELSE()
 ENDIF()
 #MARK_AS_ADVANCED()
 
-#SALOME_ACCUMULATE_HEADERS(LIBXML2_INCLUDE_DIR)
+SALOME_ACCUMULATE_HEADERS(LIBXML2_INCLUDE_DIR)
index a4442083631cdfff04f2f1f098856f882a3f74c7..b53e057b5fa91e49c5af95d2e8eaa3ce7eea7645 100644 (file)
@@ -26,3 +26,5 @@
 
 SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(MEDFile MEDFILE_INCLUDE_DIRS 1)
 #MARK_AS_ADVANCED()
+
+SALOME_ACCUMULATE_HEADERS(MEDFILE_INCLUDE_DIRS)
\ No newline at end of file
index 2d0df7a84c370e1dff8618ad826f00b250e3fee1..a12c163f92c93f17ba505186431c97acb42d2e12 100644 (file)
@@ -29,3 +29,5 @@ MARK_AS_ADVANCED(MPI_EXTRA_LIBRARY MPI_LIBRARY)
 
 SET(MPI_INCLUDE_DIRS ${MPI_C_INCLUDE_PATH} ${MPI_CXX_INCLUDE_PATH})
 SET(MPI_LIBRARIES ${MPI_C_LIBRARIES} ${MPI_CXX_LIBRARIES})
+
+SALOME_ACCUMULATE_HEADERS(MPI_INCLUDE_DIRS)
index 548475a59bf2652d21b97d5b3daddcfe33148ffa..b7ec2d98411b7946bad7fa357b07467736754bab 100644 (file)
@@ -26,4 +26,4 @@
 SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(OmniORB OMNIORB_INCLUDE_DIR 1)
 #MARK_AS_ADVANCED()
 
-#SALOME_ACCUMULATE_HEADERS(OMNIORB_INCLUDE_DIR)
\ No newline at end of file
+SALOME_ACCUMULATE_HEADERS(OMNIORB_INCLUDE_DIR)
\ No newline at end of file
index 4d1353fb5f96a5e4052fe67d65dfa77ec2e4d691..70639b708a5ee259d478720e0ac3482750517746 100644 (file)
@@ -25,3 +25,5 @@
 #
 SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(PThread PTHREAD_INCLUDE_DIR 1)
 MARK_AS_ADVANCED(PTHREAD_LIBRARIES PTHREAD_INCLUDE_DIR)
+
+SALOME_ACCUMULATE_HEADERS(PTHREAD_INCLUDE_DIR)
index 5c1f6e87c227614add82a163b6f9d8501def8cc9..89c4eb6fd1a01b3608f43764b07e887d3a5a11a6 100644 (file)
@@ -150,6 +150,7 @@ IF (SALOMEPYTHON_FOUND)
   ## 6. Save the final detected installation
   ##
   SET(PYTHON_ROOT_DIR "${_tmp_ROOT_DIR}")
+  SALOME_ACCUMULATE_HEADERS(PYTHON_INCLUDE_DIR)
 
   ## 7. Specifics
   ##
index a156c08b0ed5f3ecb8f1ac35ac74dc11ed95270d..3c3bf2d46c29402b103d2032e30a72a1b857e551 100755 (executable)
@@ -628,7 +628,9 @@ 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}")
+      IF(NOT "${l}" STREQUAL "/usr/include")
+        LIST(APPEND _${PROJECT_NAME}_EXTRA_HEADERS "${l}")
+      ENDIF()
     ENDIF()
   ENDFOREACH()
 ENDMACRO(SALOME_ACCUMULATE_HEADERS)