Salome HOME
Merge remote branch 'origin/gdd/translations'
[modules/smesh.git] / src / SMESHDS / CMakeLists.txt
1 # Copyright (C) 2012-2015  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, 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   ${KERNEL_INCLUDE_DIRS}
24   ${CAS_INCLUDE_DIRS}
25   ${VTK_INCLUDE_DIRS}
26   ${Boost_INCLUDE_DIRS}
27   ${PROJECT_SOURCE_DIR}/src/SMDS
28
29 )
30
31 # additional preprocessor / compiler flags
32 ADD_DEFINITIONS(
33   ${CAS_DEFINITIONS}
34   ${BOOST_DEFINITIONS}
35 )
36
37 # libraries to link to
38 SET(_link_LIBRARIES
39   ${CAS_KERNEL}
40   ${CAS_TKBRep}
41   ${KERNEL_SALOMELocalTrace}
42   SMDS
43 )
44
45 # --- headers ---
46
47 # header files / no moc processing
48 SET(SMESHDS_HEADERS
49   SMESHDS_Document.hxx
50   SMESHDS_Hypothesis.hxx
51   SMESHDS_Mesh.hxx
52   SMESHDS_Script.hxx
53   SMESHDS_Command.hxx
54   SMESHDS_CommandType.hxx
55   SMESHDS_SubMesh.hxx
56   SMESHDS_GroupBase.hxx
57   SMESHDS_Group.hxx
58   SMESHDS_GroupOnGeom.hxx
59   SMESHDS_GroupOnFilter.hxx
60   SMESH_SMESHDS.hxx
61   SMESHDS_DataMapOfShape.hxx
62   SMESH_Controls.hxx
63 )
64
65 # --- sources ---
66
67 # sources / static
68 SET(SMESHDS_SOURCES
69   SMESHDS_Document.cxx
70   SMESHDS_Hypothesis.cxx
71   SMESHDS_Script.cxx
72   SMESHDS_Command.cxx
73   SMESHDS_SubMesh.cxx
74   SMESHDS_Mesh.cxx
75   SMESHDS_GroupBase.cxx
76   SMESHDS_Group.cxx
77   SMESHDS_GroupOnGeom.cxx
78   SMESHDS_GroupOnFilter.cxx
79 )
80
81 # --- rules ---
82
83 ADD_LIBRARY(SMESHDS ${SMESHDS_SOURCES})
84 TARGET_LINK_LIBRARIES(SMESHDS ${_link_LIBRARIES} )
85 INSTALL(TARGETS SMESHDS EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
86
87 INSTALL(FILES ${SMESHDS_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})