From e3114f5329d41a8960a6ef7cc1efa123556b85c0 Mon Sep 17 00:00:00 2001 From: adam Date: Tue, 3 Feb 2009 10:46:17 +0000 Subject: [PATCH] compatibility netgen plugin --- salome_adm/cmake_files/am2cmake.py | 49 +++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/salome_adm/cmake_files/am2cmake.py b/salome_adm/cmake_files/am2cmake.py index 1df50f057..39218dbd9 100644 --- a/salome_adm/cmake_files/am2cmake.py +++ b/salome_adm/cmake_files/am2cmake.py @@ -134,6 +134,11 @@ class CMakeFile(object): content = content.replace("-no-undefined -version-info 0:0:0", "") content = content.replace("-no-undefined -version-info 2:5:1", "") + # -- + # Compatibility netgen plugin + # -- + content = content.replace("../NETGEN/libNETGEN.la", "${NETGEN_LIBS}") + # -- cas_list = [ "BinLPlugin", @@ -318,8 +323,29 @@ class CMakeFile(object): "MEDWrapper_V2_2", "SalomeIDLMED", ] + smesh_list = [ + "MEFISTO2D", + "MeshDriverDAT", + "MeshDriverMED", + "MeshDriver", + "MeshDriverSTL", + "MeshDriverUNV", + "SalomeIDLSMESH", + "SMDS", + "SMESHClient", + "SMESHControls", + "SMESHDS", + "SMESHEngine", + "SMESHFiltersSelection", + "SMESHimpl", + "SMESHObject", + "SMESH", + "StdMeshersEngine", + "StdMeshersGUI", + "StdMeshers", + ] full_list = cas_list + kernel_list + gui_list - full_list += geom_list + med_list + full_list += geom_list + med_list + smesh_list # -- full_list += [ "boost_thread", @@ -460,6 +486,17 @@ class CMakeFile(object): INCLUDE(${MED_ROOT_DIR}/adm_local/cmake_files/FindMED.cmake) """) pass + if self.module == "netgenplugin": + newlines.append(""" + SET(GEOM_ROOT_DIR $ENV{GEOM_ROOT_DIR}) + SET(MED_ROOT_DIR $ENV{MED_ROOT_DIR}) + SET(SMESH_ROOT_DIR $ENV{SMESH_ROOT_DIR}) + INCLUDE(${GEOM_ROOT_DIR}/adm_local/cmake_files/FindGEOM.cmake) + INCLUDE(${MED_ROOT_DIR}/adm_local/cmake_files/FindMED.cmake) + INCLUDE(${SMESH_ROOT_DIR}/adm_local/cmake_files/FindSMESH.cmake) + INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/FindNETGEN.cmake) + """) + pass pass pass # -- @@ -510,6 +547,11 @@ class CMakeFile(object): SET(SMESH_ENABLE_GUI ON) """) pass + elif self.module == "netgenplugin": + newlines.append(""" + SET(NETGENPLUGIN_ENABLE_GUI ON) + """) + pass # -- pass # -- @@ -1343,6 +1385,11 @@ class CMakeFile(object): SET_TARGET_PROPERTIES(${name} PROPERTIES DEFINE_SYMBOL SMESH_SWIG_EXPORTS) ENDIF(name STREQUAL _libSMESH_Swig) ''') + newlines.append(r''' + IF(name STREQUAL NETGENPluginGUI) + SET_TARGET_PROPERTIES(${name} PROPERTIES DEFINE_SYMBOL NETGENPLUGIN_GUI_EXPORTS) + ENDIF(name STREQUAL NETGENPluginGUI) + ''') # -- self.setLibAdd(key, newlines) # -- -- 2.39.2