Salome HOME
Porting BLSURFPLUGIN SALOME module to the CMake build system: initial version.
[plugins/blsurfplugin.git] / src / BLSURFPlugin / CMakeLists.txt
1 # Copyright (C) 2012-2013  CEA/DEN, EDF R&D, OPEN CASCADE
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.
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   ${CAS_INCLUDE_DIRS}
29   ${VTK_INCLUDE_DIRS}
30   ${MESHGEMS_INCLUDE_DIRS}
31   ${SMESH_INCLUDE_DIRS}
32   ${Boost_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   ${CAS_DEFINITIONS}
41   ${BOOST_DEFINITIONS}
42 )
43
44 # libraries to link to
45 SET(_link_LIBRARIES
46   ${PYTHON_LIBRARIES}
47   ${CAS_TKBRep}
48   ${CAS_TKGeomBase}
49   ${CAS_TKGeomAlgo}
50   ${CAS_TKTopAlgo}
51   ${CAS_TKXCAF}
52   ${CAS_TKXSBase}
53   ${CAS_TKG2d}
54   ${CAS_TKG3d}
55   ${CAS_TKShHealing}
56   ${MESHGEMS_LIBRARIES}
57   ${SMESH_SMESHimpl}
58   ${SMESH_SMESHEngine}
59   ${SMESH_StdMeshers}
60   ${SMESH_StdMeshersEngine}
61   ${SMESH_SMDS}
62   ${SMESH_SMESHDS}
63   ${GEOM_GEOMbasic}
64   ${KERNEL_OpUtil}
65   ${KERNEL_SalomeGenericObj}
66   ${KERNEL_SalomeNS}
67   ${KERNEL_SALOMELocalTrace}
68   ${KERNEL_SALOMEBasics}
69   ${Boost_LIBRARIES}
70   SalomeIDLBLSURFPLUGIN
71 )
72
73 # --- headers ---
74
75 # header files
76 SET(BLSURFEngine_HEADERS
77   BLSURFPlugin_BLSURF.hxx
78   BLSURFPlugin_BLSURF_i.hxx
79   BLSURFPlugin_Hypothesis.hxx
80   BLSURFPlugin_Hypothesis_i.hxx
81   BLSURFPlugin_Attractor.hxx
82 )
83
84 # --- sources ---
85
86 # sources / static
87 SET(BLSURFEngine_SOURCES
88   BLSURFPlugin_BLSURF.cxx
89   BLSURFPlugin_BLSURF_i.cxx
90   BLSURFPlugin_Hypothesis.cxx
91   BLSURFPlugin_Hypothesis_i.cxx
92   BLSURFPlugin_i.cxx
93   BLSURFPlugin_Attractor.cxx
94 )
95
96 # --- scripts ---
97
98 # scripts / static
99 SET(_bin_SCRIPTS
100   __init__.py
101   BLSURFPluginBuilder.py
102 )
103
104 # --- rules ---
105
106 ADD_LIBRARY(BLSURFEngine ${BLSURFEngine_SOURCES})
107 TARGET_LINK_LIBRARIES(BLSURFEngine ${_link_LIBRARIES} )
108 INSTALL(TARGETS BLSURFEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
109
110 INSTALL(FILES ${BLSURFEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
111
112 SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/BLSURFPlugin)