Salome HOME
export into medcoupling data structure
[plugins/hexoticplugin.git] / src / HexoticPlugin / CMakeLists.txt
index 021ad53b7a922fdc4e1432519c721dbc9db538f3..becf9fa25c3a882244af2ada0d9db12ad63d7435 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright (C) 2012-2013  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2012-2021  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.
+# 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
 INCLUDE_DIRECTORIES(
   ${SMESH_INCLUDE_DIRS}
   ${OMNIORB_INCLUDE_DIR}
+  ${MEDCOUPLING_INCLUDE_DIRS}
   ${Boost_INCLUDE_DIRS}
-  ${CAS_INCLUDE_DIRS}
-  ${VTK_INCLUDE_DIRS}
+  ${OpenCASCADE_INCLUDE_DIR}
+  ${MESHGEMS_INCLUDE_DIRS}
   ${KERNEL_INCLUDE_DIRS}
   ${GUI_INCLUDE_DIRS}
   ${GEOM_INCLUDE_DIRS}
@@ -35,54 +36,42 @@ INCLUDE_DIRECTORIES(
 # additional preprocessor / compiler flags
 ADD_DEFINITIONS(  
   ${OMNIORB_DEFINITIONS}
-  ${CAS_DEFINITIONS}
+  ${OpenCASCADE_DEFINITIONS}
   ${BOOST_DEFINITIONS}
 )
 
 # libraries to link to
 SET(_link_LIBRARIES
-  ${CAS_TKernel}
-  ${CAS_TKMath}
-  ${CAS_TKG3d}
-  ${CAS_TKTopAlgo}
-  ${CAS_TKBRep}
+  TKernel
+  TKMath
+  TKG3d
+  TKTopAlgo
+  TKBRep
   ${CAS_SALOMELocalTrace}
+  ${MESHGEMS_HEXA_LIBRARY}
   ${SMESH_SMESHimpl}
   ${SMESH_SMESHEngine}
   ${SMESH_StdMeshersEngine}
+  ${SMESH_MeshDriverGMF}
   ${SMESH_SMDS}
   ${SMESH_SMESHDS}
   ${SMESH_SalomeIDLSMESH}
   ${SMESH_SMESHUtils}
   ${KERNEL_SalomeGenericObj}
-  ${KERNEL_SALOMELocalTrace}
+  ${KERNEL_SALOMELocalTrace}  
   SalomeIDLHexoticPLUGIN
 )
 
 # --- headers ---
 
 # header files
-SET(NETGENEngine_HEADERS
-  NETGENPlugin_NETGEN_3D.hxx 
-  NETGENPlugin_NETGEN_3D_i.hxx 
-  NETGENPlugin_NETGEN_2D.hxx 
-  NETGENPlugin_NETGEN_2D_i.hxx 
-  NETGENPlugin_NETGEN_2D3D.hxx 
-  NETGENPlugin_NETGEN_2D3D_i.hxx 
-  NETGENPlugin_NETGEN_2D_ONLY.hxx 
-  NETGENPlugin_NETGEN_2D_ONLY_i.hxx 
-  NETGENPlugin_Hypothesis.hxx 
-  NETGENPlugin_Hypothesis_i.hxx 
-  NETGENPlugin_Hypothesis_2D.hxx 
-  NETGENPlugin_Hypothesis_2D_i.hxx 
-  NETGENPlugin_Hypothesis_3D_i.hxx 
-  NETGENPlugin_Hypothesis_2D_ONLY_i.hxx 
-  NETGENPlugin_SimpleHypothesis_2D.hxx 
-  NETGENPlugin_SimpleHypothesis_3D.hxx 
-  NETGENPlugin_SimpleHypothesis_2D_i.hxx 
-  NETGENPlugin_SimpleHypothesis_3D_i.hxx 
-  NETGENPlugin_Mesher.hxx 
-  NETGENPlugin_Defs.hxx
+SET(HexoticEngine_HEADERS
+  HexoticPlugin_Defs.hxx
+  HexoticPlugin_Hexotic.hxx
+  HexoticPlugin_Hexotic_i.hxx
+  HexoticPlugin_Hypothesis.hxx
+  HexoticPlugin_Hypothesis_i.hxx
+  MG_Hexotic_API.hxx
 )
 
 # --- sources ---
@@ -99,6 +88,7 @@ SET(HexoticEngine_SOURCES
   HexoticPlugin_Hypothesis_i.cxx
   HexoticPlugin_i.cxx
   HexoticPlugin_Defs.hxx
+  MG_Hexotic_API.cxx
 )
 
 # --- scripts ---
@@ -115,4 +105,6 @@ ADD_LIBRARY(HexoticEngine ${HexoticEngine_SOURCES})
 TARGET_LINK_LIBRARIES(HexoticEngine ${_link_LIBRARIES} )
 INSTALL(TARGETS HexoticEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
 
+INSTALL(FILES ${HexoticEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
+
 SALOME_INSTALL_SCRIPTS("${_python_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/HexoticPLUGIN)