Salome HOME
Porting GHS3DPRLPLUGIN SALOME module to the CMake build system: initial version.
[plugins/ghs3dprlplugin.git] / src / GHS3DPRLPlugin / CMakeLists.txt
diff --git a/src/GHS3DPRLPlugin/CMakeLists.txt b/src/GHS3DPRLPlugin/CMakeLists.txt
new file mode 100644 (file)
index 0000000..b923ff2
--- /dev/null
@@ -0,0 +1,93 @@
+# Copyright (C) 2012-2013  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.
+#
+# 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
+#
+
+# --- options ---
+# additional include directories
+INCLUDE_DIRECTORIES(
+  ${KERNEL_INCLUDE_DIRS}
+  ${GEOM_INCLUDE_DIRS}
+  ${CAS_INCLUDE_DIRS}
+  ${VTK_INCLUDE_DIRS}
+  ${SMESH_INCLUDE_DIRS}
+  ${OMNIORB_INCLUDE_DIR}
+  ${Boost_INCLUDE_DIRS}
+  ${PROJECT_BINARY_DIR}/idl
+)
+
+# additional preprocessor / compiler flags
+ADD_DEFINITIONS(
+  ${OMNIORB_DEFINITIONS}
+  ${CAS_DEFINITIONS}
+  ${BOOST_DEFINITIONS}
+)
+
+# libraries to link to
+SET(_link_LIBRARIES
+  ${CAS_TKBRep}
+  ${CAS_TKG2d}
+  ${CAS_TKG3d}
+  ${CAS_TKTopAlgo}
+  ${CAS_TKGeomBase}
+  ${CAS_TKGeomAlgo}
+  ${CAS_TKCDF}
+  ${SMESH_SMESHimpl}
+  ${SMESH_SMESHEngine}
+  ${SMESH_SMESHDS}
+  ${SMESH_SMDS}
+  ${SMESH_StdMeshers}
+  ${SMESH_MeshDriverGMF}
+  ${KERNEL_SalomeGenericObj}
+  ${KERNEL_SALOMELocalTrace}
+  ${KERNEL_SALOMEBasics}
+  ${KERNEL_SalomeNS}
+  ${KERNEL_OpUtil}
+  SalomeIDLGHS3DPRLPLUGIN
+)
+
+# --- sources ---
+
+# sources / static
+SET(GHS3DPRLEngine_SOURCES
+  GHS3DPRLPlugin_Defs.hxx
+  GHS3DPRLPlugin_GHS3DPRL.hxx
+  GHS3DPRLPlugin_GHS3DPRL.cxx
+  GHS3DPRLPlugin_GHS3DPRL_i.hxx
+  GHS3DPRLPlugin_GHS3DPRL_i.cxx
+  GHS3DPRLPlugin_Hypothesis.hxx
+  GHS3DPRLPlugin_Hypothesis.cxx
+  GHS3DPRLPlugin_Hypothesis_i.hxx
+  GHS3DPRLPlugin_Hypothesis_i.cxx
+  GHS3DPRLPlugin_i.cxx
+)
+
+# --- scripts ---
+
+# scripts / static
+SET(_bin_SCRIPTS
+  __init__.py
+  GHS3DPRLPluginBuilder.py
+)
+
+# --- rules ---
+
+ADD_LIBRARY(GHS3DPRLEngine ${GHS3DPRLEngine_SOURCES})
+TARGET_LINK_LIBRARIES(GHS3DPRLEngine ${_link_LIBRARIES} )
+INSTALL(TARGETS GHS3DPRLEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
+
+SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/GHS3DPRLPlugin)