Salome HOME
Updated copyright comment
[plugins/blsurfplugin.git] / src / BLSURFPlugin / CMakeLists.txt
1 # Copyright (C) 2013-2024  CEA, EDF
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 # --- options ---
21 # additional include directories
22 INCLUDE_DIRECTORIES(
23   ${QT_INCLUDES}
24   ${PYTHON_INCLUDE_DIRS}
25   ${KERNEL_INCLUDE_DIRS}
26   ${GUI_INCLUDE_DIRS}
27   ${GEOM_INCLUDE_DIRS}
28   ${OpenCASCADE_INCLUDE_DIR}
29   ${MESHGEMS_INCLUDE_DIRS}
30   ${SMESH_INCLUDE_DIRS}
31   ${Boost_INCLUDE_DIRS}
32   ${MEDCOUPLING_INCLUDE_DIRS}
33   ${OMNIORB_INCLUDE_DIR}
34   ${PROJECT_BINARY_DIR}/idl
35 )
36
37 # additional preprocessor / compiler flags
38 ADD_DEFINITIONS(  
39   ${OMNIORB_DEFINITIONS}
40   ${OpenCASCADE_DEFINITIONS}
41   ${BOOST_DEFINITIONS}
42 )
43
44 # libraries to link to
45 SET(_link_LIBRARIES
46   ${PYTHON_LIBRARIES}
47   ${OpenCASCADE_ModelingData_LIBRARIES} 
48   ${OpenCASCADE_ModelingAlgorithms_LIBRARIES} 
49   ${OpenCASCADE_DataExchange_LIBRARIES}
50   ${MESHGEMS_CADSURF_LIBRARY}
51   ${SMESH_SMESHimpl}
52   ${SMESH_SMESHEngine}
53   ${SMESH_StdMeshers}
54   ${SMESH_StdMeshersEngine}
55   ${SMESH_SMDS}
56   ${SMESH_SMESHDS}
57   ${SMESH_SMESHUtils}
58   ${GEOM_GEOMbasic}
59   ${KERNEL_OpUtil}
60   ${KERNEL_SalomeGenericObj}
61   ${KERNEL_SalomeNS}
62   ${KERNEL_SALOMELocalTrace}
63   ${KERNEL_SALOMEBasics}
64   ${Boost_LIBRARIES}
65   SalomeIDLBLSURFPLUGIN
66 )
67
68 # --- headers ---
69
70 # header files
71 SET(BLSURFEngine_HEADERS
72   BLSURFPlugin_BLSURF.hxx
73   BLSURFPlugin_BLSURF_i.hxx
74   BLSURFPlugin_Hypothesis.hxx
75   BLSURFPlugin_Hypothesis_i.hxx
76   BLSURFPlugin_Attractor.hxx
77   BLSURFPlugin_EnforcedMesh1D.hxx
78 )
79
80 # --- sources ---
81
82 # sources / static
83 SET(BLSURFEngine_SOURCES
84   BLSURFPlugin_BLSURF.cxx
85   BLSURFPlugin_BLSURF_i.cxx
86   BLSURFPlugin_Hypothesis.cxx
87   BLSURFPlugin_Hypothesis_i.cxx
88   BLSURFPlugin_i.cxx
89   BLSURFPlugin_Attractor.cxx
90   BLSURFPlugin_EnforcedMesh1D.cxx
91 )
92
93 # --- scripts ---
94
95 # scripts / static
96 SET(_bin_SCRIPTS
97   __init__.py
98   BLSURFPluginBuilder.py
99 )
100
101 # --- rules ---
102
103 ADD_LIBRARY(BLSURFEngine ${BLSURFEngine_SOURCES})
104 TARGET_LINK_LIBRARIES(BLSURFEngine ${_link_LIBRARIES} )
105 INSTALL(TARGETS BLSURFEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
106
107 INSTALL(FILES ${BLSURFEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
108
109 SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/BLSURFPlugin)