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",
"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",
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
# --
SET(SMESH_ENABLE_GUI ON)
""")
pass
+ elif self.module == "netgenplugin":
+ newlines.append("""
+ SET(NETGENPLUGIN_ENABLE_GUI ON)
+ """)
+ pass
# --
pass
# --
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)
# --