2) Udate several macros from GUI.
--- /dev/null
+# Copyright (C) 2013-2016 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
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# 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
+#
+
+SET(BLSURFPLUGIN_CXXFLAGS -I${BLSURFPLUGIN_ROOT_DIR}/include/salome)
+
+FIND_LIBRARY(BLSURFEngine BLSURFEngine ${BLSURFPLUGIN_ROOT_DIR}/lib/salome)
+FIND_LIBRARY(BLSURFPluginGUI BLSURFPluginGUI ${BLSURFPLUGIN_ROOT_DIR}/lib/salome)
+FIND_LIBRARY(SalomeIDLBLSURFPLUGIN SalomeIDLBLSURFPLUGIN ${BLSURFPLUGIN_ROOT_DIR}/lib/salome)
--- /dev/null
+# Copyright (C) 2007-2016 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
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# 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
+#
+
+SET(GHS3DPRLPLUGIN_CXXFLAGS -I${GHS3DPRLPLUGIN_ROOT_DIR}/include/salome)
+
+FIND_LIBRARY(GHS3DPRLEngine GHS3DPRLEngine ${GHS3DPRLPLUGIN_ROOT_DIR}/lib/salome)
+FIND_LIBRARY(GHS3DPRLPluginGUI GHS3DPRLPluginGUI ${GHS3DPRLPLUGIN_ROOT_DIR}/lib/salome)
+FIND_LIBRARY(SalomeIDLGHS3DPRLPLUGIN SalomeIDLGHS3DPRLPLUGIN ${GHS3DPRLPLUGIN_ROOT_DIR}/lib/salome)
--- /dev/null
+# Copyright (C) 2007-2016 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
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# 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
+#
+
+SET(HYBRIDPLUGIN_CXXFLAGS -I${HYBRIDPLUGIN_ROOT_DIR}/include/salome)
+
+FIND_LIBRARY(HYBRIDEngine HYBRIDEngine ${HYBRIDPLUGIN_ROOT_DIR}/lib/salome)
+FIND_LIBRARY(HYBRIDPluginGUI HYBRIDPluginGUI ${HYBRIDPLUGIN_ROOT_DIR}/lib/salome)
+FIND_LIBRARY(SalomeIDLHYBRIDPLUGIN SalomeIDLHYBRIDPLUGIN ${HYBRIDPLUGIN_ROOT_DIR}/lib/salome)
--- /dev/null
+# Copyright (C) 2007-2016 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
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# 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
+#
+
+SET(HexoticPLUGIN_CXXFLAGS -I${HexoticPLUGIN_ROOT_DIR}/include/salome)
+
+FIND_LIBRARY(HexoticEngine HexoticEngine ${HexoticPLUGIN_ROOT_DIR}/lib/salome)
+FIND_LIBRARY(HexoticPluginGUI HexoticPluginGUI ${HexoticPLUGIN_ROOT_DIR}/lib/salome)
+FIND_LIBRARY(SalomeIDLHexoticPLUGIN SalomeIDLHexoticPLUGIN ${HexoticPLUGIN_ROOT_DIR}/lib/salome)
--- /dev/null
+# Copyright (C) 2013-2016 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
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# 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
+#
+
+# - Find MESHGEMS
+# Sets the following variables:
+# MESHGEMS_INCLUDE_DIRS - path to the MESHGEMS include directory
+# MESHGEMS_LIBRARIES - path to the MESHGEMS libraries to be linked against
+
+# ------
+
+MESSAGE(STATUS "Check for MESHGEMS ...")
+
+# ------
+
+SET(MESHGEMS_ROOT_DIR $ENV{MESHGEMS_ROOT_DIR})
+
+IF(MESHGEMS_ROOT_DIR)
+ LIST(APPEND CMAKE_PREFIX_PATH "${MESHGEMS_ROOT_DIR}")
+ENDIF(MESHGEMS_ROOT_DIR)
+
+FIND_PATH(MESHGEMS_INCLUDE_DIRS meshgems/cadsurf.h PATH_SUFFIXES include)
+
+IF(MACHINE_IS_64)
+ SET(_suff "_64")
+ELSE()
+ SET(_suff)
+ENDIF(MACHINE_IS_64)
+IF(WIN32)
+ SET(_plt WinXP${_suff}_VC9 WinXP${_suff}_VC10)
+ELSE()
+ SET(_plt Linux${_suff})
+ENDIF(WIN32)
+
+FIND_LIBRARY(MESHGEMS_LIBRARY_mg-cadsurf NAMES mg-cadsurf PATH_SUFFIXES ${_plt})
+FIND_LIBRARY(MESHGEMS_LIBRARY_mg-precad NAMES mg-precad PATH_SUFFIXES ${_plt})
+FIND_LIBRARY(MESHGEMS_LIBRARY_meshgems NAMES meshgems PATH_SUFFIXES ${_plt})
+
+# TODO: search all components
+SET(MESHGEMS_LIBRARIES)
+SET(MESHGEMS_LIBRARIES ${MESHGEMS_LIBRARIES} ${MESHGEMS_LIBRARY_mg-cadsurf})
+SET(MESHGEMS_LIBRARIES ${MESHGEMS_LIBRARIES} ${MESHGEMS_LIBRARY_mg-precad})
+IF(MESHGEMS_LIBRARY_meshgems)
+ SET(MESHGEMS_LIBRARIES ${MESHGEMS_LIBRARIES} ${MESHGEMS_LIBRARY_meshgems})
+ENDIF(MESHGEMS_LIBRARY_meshgems)
+
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(MESHGEMS REQUIRED_VARS MESHGEMS_INCLUDE_DIRS MESHGEMS_LIBRARIES)
--- /dev/null
+# - Find NETGEN
+# Sets the following variables:
+# NETGEN_INCLUDE_DIRS - path to the NETGEN include directories
+# NETGEN_LIBRARIES - path to the NETGEN libraries to be linked against
+#
+
+#########################################################################
+# Copyright (C) 2007-2016 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, or (at your option) any later version.
+#
+# 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 Netgen_FIND_QUIETLY)
+ MESSAGE(STATUS "Check for Netgen ...")
+ENDIF()
+
+# ------
+
+SET(NETGEN_ROOT_DIR $ENV{NETGEN_ROOT_DIR})
+
+IF(NETGEN_ROOT_DIR)
+ LIST(APPEND CMAKE_PREFIX_PATH "${NETGEN_ROOT_DIR}")
+ENDIF(NETGEN_ROOT_DIR)
+
+FIND_PATH(_netgen_base_inc_dir nglib.h)
+SET(NETGEN_INCLUDE_DIRS ${_netgen_base_inc_dir})
+FIND_PATH(_netgen_add_inc_dir occgeom.hpp HINTS ${_netgen_base_inc_dir} PATH_SUFFIXES share/netgen/include)
+LIST(APPEND NETGEN_INCLUDE_DIRS ${_netgen_add_inc_dir})
+LIST(REMOVE_DUPLICATES NETGEN_INCLUDE_DIRS)
+
+FIND_LIBRARY(NETGEN_nglib NAMES nglib)
+IF(WIN32)
+ FIND_LIBRARY(NETGEN_csg NAMES csg)
+ FIND_LIBRARY(NETGEN_gen NAMES gen)
+ FIND_LIBRARY(NETGEN_geom2d NAMES geom2d)
+ FIND_LIBRARY(NETGEN_gprim NAMES gprim)
+ FIND_LIBRARY(NETGEN_interface NAMES interface)
+ FIND_LIBRARY(NETGEN_la NAMES la)
+ FIND_LIBRARY(NETGEN_mesh NAMES mesh)
+ FIND_LIBRARY(NETGEN_occ NAMES occ)
+ FIND_LIBRARY(NETGEN_stl NAMES stl)
+ENDIF(WIN32)
+
+SET(NETGEN_LIBRARIES ${NETGEN_nglib})
+
+IF(WIN32)
+ SET(NETGEN_LIBRARIES ${NETGEN_LIBRARIES}
+ ${NETGEN_csg}
+ ${NETGEN_gen}
+ ${NETGEN_geom2d}
+ ${NETGEN_gprim}
+ ${NETGEN_interface}
+ ${NETGEN_la}
+ ${NETGEN_mesh}
+ ${NETGEN_occ}
+ ${NETGEN_stl}
+ )
+ENDIF(WIN32)
+
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(NETGEN REQUIRED_VARS NETGEN_INCLUDE_DIRS NETGEN_LIBRARIES)
+
+INCLUDE(CheckCXXSourceCompiles)
+
+IF(NETGEN_FOUND)
+
+ SET(CMAKE_REQUIRED_INCLUDES "${CMAKE_REQUIRED_INCLUDES} ${NETGEN_INCLUDE_DIRS}")
+ SET(CMAKE_REQUIRED_LIBRARIES "${NETGEN_LIBRARIES}")
+ CHECK_CXX_SOURCE_COMPILES("
+ #include <meshing.hpp>
+
+ int main()
+ {
+ netgen::Mesh* ngMesh;
+ ngMesh->CalcLocalH(1.0);
+ }
+" NETGEN_V5
+ )
+
+ IF(NOT Netgen_FIND_QUIETLY)
+ MESSAGE(STATUS "Netgen library: ${NETGEN_LIBRARIES}")
+ ENDIF()
+ SET(NETGEN_DEFINITIONS "-DOCCGEOMETRY")
+
+ IF(NETGEN_V5)
+ MESSAGE(STATUS "NETGEN V5 or later found")
+ SET(NETGEN_DEFINITIONS "${NETGEN_DEFINITIONS} -DNETGEN_V5")
+ ENDIF(NETGEN_V5)
+
+ #RNV: currently on windows use netgen without thread support.
+ #TODO: check support of the multithreading on windows
+ IF(WIN32)
+ SET(NETGEN_DEFINITIONS "${NETGEN_DEFINITIONS} -DNO_PARALLEL_THREADS")
+ ENDIF(WIN32)
+ENDIF()
--- /dev/null
+# Copyright (C) 2007-2016 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
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# 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 SalomeBLSURFPLUGIN_FIND_QUIETLY)
+ MESSAGE(STATUS "Looking for Salome BLSURFPLUGIN ...")
+ENDIF()
+
+SET(CMAKE_PREFIX_PATH "${BLSURFPLUGIN_ROOT_DIR}")
+
+SALOME_FIND_PACKAGE(SalomeBLSURFPLUGIN SalomeBLSURFPLUGIN CONFIG)
+
+IF(NOT SalomeBLSURFPLUGIN_FIND_QUIETLY)
+ MESSAGE(STATUS "Found Salome BLSURFPLUGIN: ${BLSURFPLUGIN_ROOT_DIR}")
+ENDIF()
+
+FOREACH(_res ${SalomeBLSURFPLUGIN_EXTRA_ENV})
+ SALOME_ACCUMULATE_ENVIRONMENT(${_res} "${SalomeBLSURFPLUGIN_EXTRA_ENV_${_res}}")
+ENDFOREACH()
--- /dev/null
+# Copyright (C) 2007-2016 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, or (at your option) any later version.
+#
+# 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 SalomeCALCULATOR_FIND_QUIETLY)
+ MESSAGE(STATUS "Looking for Salome CALCULATOR ...")
+ENDIF()
+
+SET(CMAKE_PREFIX_PATH "${CALCULATOR_ROOT_DIR}")
+
+SALOME_FIND_PACKAGE(SalomeCALCULATOR SalomeCALCULATOR CONFIG)
+
+IF(NOT SalomeCALCULATOR_FIND_QUIETLY)
+ MESSAGE(STATUS "Found Salome CALCULATOR: ${CALCULATOR_ROOT_DIR}")
+ENDIF()
+
+FOREACH(_res ${SalomeCALCULATOR_EXTRA_ENV})
+ SALOME_ACCUMULATE_ENVIRONMENT(${_res} "${SalomeCALCULATOR_EXTRA_ENV_${_res}}")
+ENDFOREACH()
--- /dev/null
+# Copyright (C) 2007-2016 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, or (at your option) any later version.
+#
+# 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 SalomeCOMPONENT_FIND_QUIETLY)
+ MESSAGE(STATUS "Looking for Salome COMPONENT ...")
+ENDIF()
+
+SET(CMAKE_PREFIX_PATH "${COMPONENT_ROOT_DIR}")
+
+SALOME_FIND_PACKAGE(SalomeCOMPONENT SalomeCOMPONENT CONFIG)
+
+IF(NOT SalomeCOMPONENT_FIND_QUIETLY)
+ MESSAGE(STATUS "Found Salome COMPONENT: ${COMPONENT_ROOT_DIR}")
+ENDIF()
+
+FOREACH(_res ${SalomeCOMPONENT_EXTRA_ENV})
+ SALOME_ACCUMULATE_ENVIRONMENT(${_res} "${SalomeCOMPONENT_EXTRA_ENV_${_res}}")
+ENDFOREACH()
\ No newline at end of file
--- /dev/null
+# Copyright (C) 2007-2016 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
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# 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 SalomeGHS3DPLUGIN_FIND_QUIETLY)
+ MESSAGE(STATUS "Looking for Salome GHS3DPLUGIN ...")
+ENDIF()
+
+SET(CMAKE_PREFIX_PATH "${GHS3DPLUGIN_ROOT_DIR}")
+
+SALOME_FIND_PACKAGE(SalomeGHS3DPLUGIN SalomeGHS3DPLUGIN CONFIG)
+
+IF(NOT SalomeGHS3DPLUGIN_FIND_QUIETLY)
+ MESSAGE(STATUS "Found Salome GHS3DPLUGIN: ${GHS3DPLUGIN_ROOT_DIR}")
+ENDIF()
+
+FOREACH(_res ${SalomeGHS3DPLUGIN_EXTRA_ENV})
+ SALOME_ACCUMULATE_ENVIRONMENT(${_res} "${SalomeGHS3DPLUGIN_EXTRA_ENV_${_res}}")
+ENDFOREACH()
\ No newline at end of file
--- /dev/null
+# Copyright (C) 2007-2016 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
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# 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 SalomeGHS3DPRLPLUGIN_FIND_QUIETLY)
+ MESSAGE(STATUS "Looking for Salome GHS3DPRLPLUGIN ...")
+ENDIF()
+
+SET(CMAKE_PREFIX_PATH "${GHS3DPRLPLUGIN_ROOT_DIR}")
+
+SALOME_FIND_PACKAGE(SalomeGHS3DPRLPLUGIN SalomeGHS3DPRLPLUGIN CONFIG)
+
+IF(NOT SalomeGHS3DPLUGIN_FIND_QUIETLY)
+ MESSAGE(STATUS "Found Salome GHS3DPRLPLUGIN: ${GHS3DPRLPLUGIN_ROOT_DIR}")
+ENDIF()
+
+FOREACH(_res ${SalomeGHS3DPRLPLUGIN_EXTRA_ENV})
+ SALOME_ACCUMULATE_ENVIRONMENT(${_res} "${SalomeGHS3DPRLPLUGIN_EXTRA_ENV_${_res}}")
+ENDFOREACH()
--- /dev/null
+# Copyright (C) 2007-2016 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
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# 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 SalomeHEXABLOCK_FIND_QUIETLY)
+ MESSAGE(STATUS "Looking for Salome HEXABLOCK ...")
+ENDIF()
+
+SET(CMAKE_PREFIX_PATH "${HEXABLOCK_ROOT_DIR}")
+
+SALOME_FIND_PACKAGE(SalomeHEXABLOCK SalomeHEXABLOCK CONFIG)
+
+IF(NOT SalomeHEXABLOCK_FIND_QUIETLY)
+ MESSAGE(STATUS "Found Salome HEXABLOCK: ${HEXABLOCK_ROOT_DIR}")
+ENDIF()
+
+FOREACH(_res ${SalomeHEXABLOCK_EXTRA_ENV})
+ SALOME_ACCUMULATE_ENVIRONMENT(${_res} "${SalomeHEXABLOCK_EXTRA_ENV_${_res}}")
+ENDFOREACH()
\ No newline at end of file
--- /dev/null
+# Copyright (C) 2007-2016 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
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# 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 SalomeHEXABLOCKPLUGIN_FIND_QUIETLY)
+ MESSAGE(STATUS "Looking for Salome HEXABLOCKPLUGIN ...")
+ENDIF()
+
+SET(CMAKE_PREFIX_PATH "${HEXABLOCKPLUGIN_ROOT_DIR}")
+
+SALOME_FIND_PACKAGE(SalomeHEXABLOCKPLUGIN SalomeHEXABLOCKPLUGIN CONFIG)
+
+IF(NOT SalomeHEXABLOCKPLUGIN_FIND_QUIETLY)
+ MESSAGE(STATUS "Found Salome HEXABLOCKPLUGIN: ${HEXABLOCKPLUGIN_ROOT_DIR}")
+ENDIF()
+
+FOREACH(_res ${SalomeHEXABLOCKPLUGIN_EXTRA_ENV})
+ SALOME_ACCUMULATE_ENVIRONMENT(${_res} "${SalomeHEXABLOCKPLUGIN_EXTRA_ENV_${_res}}")
+ENDFOREACH()
\ No newline at end of file
--- /dev/null
+# Copyright (C) 2007-2016 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
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# 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 SalomeHOMARD_FIND_QUIETLY)
+ MESSAGE(STATUS "Looking for Salome HOMARD ...")
+ENDIF()
+
+SET(CMAKE_PREFIX_PATH "${HOMARD_ROOT_DIR}")
+
+SALOME_FIND_PACKAGE(SalomeHOMARD SalomeHOMARD CONFIG)
+
+IF(NOT SalomeHOMARD_FIND_QUIETLY)
+ MESSAGE(STATUS "Found Salome HOMARD: ${HOMARD_ROOT_DIR}")
+ENDIF()
+
+FOREACH(_res ${SalomeHOMARD_EXTRA_ENV})
+ SALOME_ACCUMULATE_ENVIRONMENT(${_res} "${SalomeHOMARD_EXTRA_ENV_${_res}}")
+ENDFOREACH()
\ No newline at end of file
--- /dev/null
+# Copyright (C) 2007-2016 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
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# 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 SalomeHYBRIDPLUGIN_FIND_QUIETLY)
+ MESSAGE(STATUS "Looking for Salome HYBRIDPLUGIN ...")
+ENDIF()
+
+SET(CMAKE_PREFIX_PATH "${HYBRIDPLUGIN_ROOT_DIR}")
+
+SALOME_FIND_PACKAGE(SalomeHYBRIDPLUGIN SalomeHYBRIDPLUGIN CONFIG)
+
+IF(NOT SalomeHYBRIDPLUGIN_FIND_QUIETLY)
+ MESSAGE(STATUS "Found Salome HYBRIDPLUGIN: ${HYBRIDPLUGIN_ROOT_DIR}")
+ENDIF()
+
+FOREACH(_res ${SalomeHYBRIDPLUGIN_EXTRA_ENV})
+ SALOME_ACCUMULATE_ENVIRONMENT(${_res} "${SalomeHYBRIDPLUGIN_EXTRA_ENV_${_res}}")
+ENDFOREACH()
--- /dev/null
+# Copyright (C) 2007-2016 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
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# 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 SalomeHexoticPLUGIN_FIND_QUIETLY)
+ MESSAGE(STATUS "Looking for Salome HexoticPLUGIN ...")
+ENDIF()
+
+SET(CMAKE_PREFIX_PATH "${HexoticPLUGIN_ROOT_DIR}")
+
+SALOME_FIND_PACKAGE(SalomeHexoticPLUGIN SalomeHexoticPLUGIN CONFIG)
+
+IF(NOT SalomeHexoticPLUGIN_FIND_QUIETLY)
+ MESSAGE(STATUS "Found Salome HexoticPLUGIN: ${HexoticPLUGIN_ROOT_DIR}")
+ENDIF()
+
+FOREACH(_res ${SalomeHexoticPLUGIN_EXTRA_ENV})
+ SALOME_ACCUMULATE_ENVIRONMENT(${_res} "${SalomeHexoticPLUGIN_EXTRA_ENV_${_res}}")
+ENDFOREACH()
\ No newline at end of file
--- /dev/null
+# Copyright (C) 2013-2016 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
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# 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_FIND_PACKAGE_AND_DETECT_CONFLICTS(MESHGEMS MESHGEMS_INCLUDE_DIRS 1)
+MARK_AS_ADVANCED(MESHGEMS_INCLUDE_DIRS MESHGEMS_LIBRARIES)
+
+IF(MESHGEMS_FOUND)
+ SALOME_ACCUMULATE_HEADERS(MESHGEMS_INCLUDE_DIRS)
+ SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH ${MESHGEMS_LIBRARIES})
+ENDIF()
--- /dev/null
+# Copyright (C) 2007-2016 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, or (at your option) any later version.
+#
+# 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 SalomeNETGENPLUGIN_FIND_QUIETLY)
+ MESSAGE(STATUS "Looking for Salome NETGENPLUGIN ...")
+ENDIF()
+
+SET(CMAKE_PREFIX_PATH "${NETGENPLUGIN_ROOT_DIR}")
+
+SALOME_FIND_PACKAGE(SalomeNETGENPLUGIN SalomeNETGENPLUGIN CONFIG)
+
+IF(NOT SalomeNETGENPLUGIN_FIND_QUIETLY)
+ MESSAGE(STATUS "Found Salome NETGENPLUGIN: ${NETGENPLUGIN_ROOT_DIR}")
+ENDIF()
+
+FOREACH(_res ${SalomeNETGENPLUGIN_EXTRA_ENV})
+ SALOME_ACCUMULATE_ENVIRONMENT(${_res} "${SalomeNETGENPLUGIN_EXTRA_ENV_${_res}}")
+ENDFOREACH()
\ No newline at end of file
--- /dev/null
+# Copyright (C) 2013-2016 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, or (at your option) any later version.
+#
+# 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_FIND_PACKAGE_AND_DETECT_CONFLICTS(Netgen NETGEN_INCLUDE_DIRS 1)
+MARK_AS_ADVANCED(NETGEN_INCLUDE_DIRS NETGEN_LIBRARIES)
+
+IF(NETGEN_FOUND)
+ SALOME_ACCUMULATE_HEADERS(NETGEN_INCLUDE_DIRS)
+ SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH ${NETGEN_LIBRARIES})
+ENDIF()
# Qt5_FIND_COMPONENTS variable is set here to prevent ParaView to reset list of Qt5 modules,
# just to avoid extra dependencies
-SET(Qt5_FIND_COMPONENTS Core Gui Widgets Network Xml OpenGL PrintSupport WebKit WebKitWidgets Help Test Sql Sensors Positioning Quick Qml Multimedia MultimediaWidgets WebChannel UiTools)
-
-IF(NOT WIN32)
- LIST(APPEND Qt5_FIND_COMPONENTS X11Extras)
-ENDIF()
SET(QT_INCLUDES)
SET(QT_DEFINITIONS)
SET(QT_LIBRARIES)
+# Find Qt5Core to get Qt version
+SET(Qt5_FIND_COMPONENTS QtCore)
+SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(Qt5Core Qt5Core_INCLUDE_DIRS 1 ENVVAR QT5_ROOT_DIR)
+IF(Qt5Core_FOUND)
+ LIST(APPEND QT_INCLUDES ${Qt5Core_INCLUDE_DIRS})
+ LIST(APPEND QT_DEFINITIONS ${Qt5Core_DEFINITIONS})
+ LIST(APPEND QT_LIBRARIES ${Qt5Core_LIBRARIES})
+ SET(QT_VERSION "${Qt5Core_VERSION}")
+ENDIF()
+
+SET(Qt5_FIND_COMPONENTS Gui Widgets Network Xml OpenGL PrintSupport Help Test Sql Sensors Positioning Quick Qml Multimedia MultimediaWidgets WebChannel UiTools)
-FOREACH(_Qt5_COMPONENT ${Qt5_FIND_COMPONENTS})
- SET(_Qt5_COMPONENT Qt5${_Qt5_COMPONENT})
+IF ("${QT_VERSION}" VERSION_LESS "5.6.0")
+ LIST(APPEND Qt5_FIND_COMPONENTS WebKit WebKitWidgets)
+ELSE()
+ LIST(APPEND Qt5_OPTIONAL_COMPONENTS WebEngine WebEngineWidgets)
+ENDIF()
+
+IF(NOT WIN32)
+ LIST(APPEND Qt5_FIND_COMPONENTS X11Extras)
+ENDIF()
+
+FOREACH(_Qt5_COMPONENT_ ${Qt5_FIND_COMPONENTS} ${Qt5_OPTIONAL_COMPONENTS})
+ SET(_Qt5_COMPONENT Qt5${_Qt5_COMPONENT_})
+ LIST(FIND Qt5_OPTIONAL_COMPONENTS ${_Qt5_COMPONENT_} idx)
+ IF(${idx} GREATER -1)
+ SET(Salome${_Qt5_COMPONENT}_FIND_QUIETLY TRUE)
+ ENDIF()
SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(${_Qt5_COMPONENT} ${_Qt5_COMPONENT}_INCLUDE_DIRS 1 ENVVAR QT5_ROOT_DIR)
LIST(APPEND QT_INCLUDES ${${_Qt5_COMPONENT}_INCLUDE_DIRS})
LIST(APPEND QT_DEFINITIONS ${${_Qt5_COMPONENT}_DEFINITIONS})
SALOME_ACCUMULATE_HEADERS(QT_INCLUDES)
SALOME_ACCUMULATE_ENVIRONMENT(PATH ${LINGUIST_PATH})
SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH ${Qt5Core_LIBRARIES})
- SET(QT_VERSION "${Qt5Core_VERSION}")
GET_FILENAME_COMPONENT(Qt5_DIR ${Qt5Core_DIR} PATH)
FILE(TO_NATIVE_PATH "${Qt5_DIR}/Qt5" Qt5_DIR)
SET(SalomeQt5_COMPONENTS ${Qt5_FIND_COMPONENTS})
--- /dev/null
+# Copyright (C) 2013-2016 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, or (at your option) any later version.
+#
+# 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: Roman NIKOLAEV
+#
+
+#----------------------------------------------------------------------------
+# SALOME_ADD_SPHINX_DOC is a macro useful for generating sphinx documentation
+#
+# USAGE: SALOME_ADD_SPHINX_DOC(sphinx_type sphinx_name src_dir cfg_dir)
+#
+# ARGUMENTS:
+#
+# sphinx_type: IN - type of the sphinx generator, use one of the following types:
+#
+# html - to make standalone HTML files
+# dirhtml - to make HTML files named index.html in directories
+# singlehtml - to make a single large HTML file
+# pickle - to make pickle files
+# json - to make JSON files
+# htmlhelp - to make HTML files and a HTML help project
+# qthelp - to make HTML files and a qthelp project"
+# devhelp to make HTML files and a Devhelp project"
+# epub to make an epub"
+# latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter
+# latexpdf to make LaTeX files and run them through pdflatex"
+# text to make text files"
+# man to make manual pages"
+# texinfo to make Texinfo files"
+# info to make Texinfo files and run them through makeinfo
+# gettext to make PO message catalogs"
+# changes to make an overview of all changed/added/deprecated items
+# linkcheck to check all external links for integrity"
+# doctest to run all doctests embedded in the documentation (if enabled)\
+#
+# sphinx_name: IN - documentation target name
+#
+# src_dir : IN - path to directory that contains the sphinx source files
+#
+# cfg_dir : IN - path to directory that contains sphinx configuration file (if not specified,
+# it is considered equal to src_dir)
+#
+# ADDITIONAL SETTINGS:
+#
+# Also you can set these variables to define additional sphinx settings:
+#
+# SPHINXOPTS - sphinx executable options
+# PAPER - LaTeX paper type ("a4" by default)
+# BUILDDIR - local sphinx build directory ("_build" by default)
+#----------------------------------------------------------------------------
+
+MACRO(SALOME_ADD_SPHINX_DOC sphinx_type sphinx_name src_dir cfg_dir)
+
+ # Get type and additional settings
+ SET(SPHINX_TYPE ${sphinx_type})
+ IF(${SPHINX_TYPE} STREQUAL "")
+ SET(SPHINX_TYPE html)
+ ENDIF(${SPHINX_TYPE} STREQUAL "")
+
+ IF("${PAPER}" STREQUAL "")
+ SET(PAPER a4)
+ ENDIF()
+
+ IF("${BUILDDIR}" STREQUAL "")
+ SET(BUILDDIR _build)
+ ENDIF()
+
+ SET(SPHINX_CFG ${cfg_dir})
+ IF("${SPHINX_CFG}" STREQUAL "")
+ SET(SPHINX_CFG ${src_dir})
+ ENDIF()
+
+ # Initialize internal variables
+ SET(PAPEROPT_a4 -D latex_paper_size=a4)
+ SET(PAPEROPT_letter -D latex_paper_size=letter)
+ SET(ALLSPHINXOPTS -d ${BUILDDIR}/doctrees ${PAPEROPT_${PAPER}} ${SPHINXOPTS})
+ SET(I18NSPHINXOPTS ${PAPEROPT_${PAPER}} ${SPHINXOPTS})
+
+ SET(ALLSPHINXOPTS ${ALLSPHINXOPTS} ${src_dir})
+ SET(I18NSPHINXOPTS ${I18NSPHINXOPTS} ${src_dir})
+
+ # Set internal out directory
+ SET(_OUT_DIR ${SPHINX_TYPE})
+ IF(${SPHINX_TYPE} STREQUAL "gettext")
+ SET(_OUT_DIR gettext)
+ SET(ALLSPHINXOPTS ${I18NSPHINXOPTS})
+ ENDIF(${SPHINX_TYPE} STREQUAL "gettext")
+
+ # Build sphinx command
+ SET(_CMD_OPTIONS -b ${SPHINX_TYPE} -c ${SPHINX_CFG} ${ALLSPHINXOPTS} ${BUILDDIR}/${_OUT_DIR})
+
+ # This macro mainly prepares the environment in which sphinx should run:
+ # this sets the PYTHONPATH and LD_LIBRARY_PATH to include OMNIORB, DOCUTILS, SETUPTOOLS, etc ...
+ SALOME_GENERATE_ENVIRONMENT_SCRIPT(_cmd env_script "${SPHINX_EXECUTABLE}" "${_CMD_OPTIONS}")
+ ADD_CUSTOM_TARGET(${sphinx_name} ALL ${_cmd})
+
+ENDMACRO(SALOME_ADD_SPHINX_DOC)
SET_PROPERTY(GLOBAL PROPERTY USE_FOLDERS ON)
_PYQT_WRAP_GET_UNIQUE_TARGET_NAME(BUILD_UI_PY_FILES _uniqueTargetName)
ADD_CUSTOM_TARGET(${_uniqueTargetName} ALL)
+ SET_TARGET_PROPERTIES(${_uniqueTargetName} PROPERTIES FOLDER PYQT_WRAP_UIC_TARGETS)
FOREACH(_input ${ARGN})
GET_FILENAME_COMPONENT(_input_name ${_input} NAME)
STRING(REPLACE ".ui" "_ui.py" _input_name ${_input_name})
DEPENDS ${_input}
)
SET_TARGET_PROPERTIES(${_TgName} PROPERTIES FOLDER PYQT_WRAP_UIC_TARGETS)
- ADD_DEPENDENCIES(${_uniqueTargetName} DEPEND ${_TgName})
+ ADD_DEPENDENCIES(${_uniqueTargetName} ${_TgName})
SET(${outfiles} ${${outfiles}} ${_output})
ENDFOREACH()
ENDIF(NOT WIN32)
IF (QT_VERSION VERSION_LESS "5.0")
QT4_WRAP_CPP(${ARGN})
ELSE()
- QT5_WRAP_CPP(${ARGN})
+ QT5_WRAP_CPP(${ARGN})
+ # Workaround to avoid problem with bug in moc preprocessor:
+ # The problem is reproduced on Linux in case if native system Qt is installed
+ # and "-I/usr/include" parameter is presented in the moc command line before
+ # custom Qt includes. This bug takes place in Qt-5.6.0 and newer. To avoid this
+ # bug move "-I/usr/include" parameter in the "moc parameters" file to the end
+ # of the "include section".
+ IF (NOT WIN32)
+ FOREACH(IT ${ARGN})
+ GET_FILENAME_COMPONENT(IT ${IT} ABSOLUTE)
+ GET_FILENAME_COMPONENT(PFILE ${IT} NAME_WE)
+ SET(OUTFILE ${CMAKE_CURRENT_BINARY_DIR}/moc_${PFILE}.cpp_parameters)
+ IF(EXISTS ${OUTFILE})
+ SET(NEW_CONTENT)
+ SET(IS_INCLUDE_SECTION TRUE)
+ SET(HAS_SYSTEM_INC FALSE)
+ FILE(READ ${OUTFILE} CONTENT)
+ STRING(REGEX REPLACE "\n" ";" CONTENT "${CONTENT}")
+ list(REMOVE_DUPLICATES CONTENT)
+ FOREACH(S ${CONTENT})
+ IF("${S}" MATCHES "^-I")
+ IF("${S}" STREQUAL "-I/usr/include")
+ SET(HAS_SYSTEM_INC TRUE)
+ ELSE()
+ SET(NEW_CONTENT ${NEW_CONTENT} "${S}\n")
+ ENDIF()
+ ELSE()
+ SET(IS_INCLUDE_SECTION FALSE)
+ ENDIF()
+ IF(NOT IS_INCLUDE_SECTION)
+ IF(HAS_SYSTEM_INC)
+ SET(NEW_CONTENT ${NEW_CONTENT} "-I/usr/include\n")
+ SET(HAS_SYSTEM_INC FALSE)
+ ENDIF()
+ SET(NEW_CONTENT ${NEW_CONTENT} "${S}\n")
+ ENDIF()
+ ENDFOREACH()
+ FILE(WRITE ${OUTFILE} ${NEW_CONTENT})
+ ENDIF()
+ ENDFOREACH()
+ ENDIF()
ENDIF()
ENDMACRO(QT_WRAP_MOC)