Salome HOME
Fix Redesign of SMESH documentation
[modules/smesh.git] / src / SMESHDS / CMakeLists.txt
1 # Copyright (C) 2012-2016  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
23 IF(SALOME_SMESH_USE_TBB)
24   SET(TBB_INCLUDES ${TBB_INCLUDE_DIRS})
25 ENDIF(SALOME_SMESH_USE_TBB)
26
27 INCLUDE_DIRECTORIES(
28   ${KERNEL_INCLUDE_DIRS}
29   ${OpenCASCADE_INCLUDE_DIR}
30   ${VTK_INCLUDE_DIRS}
31   ${Boost_INCLUDE_DIRS}
32   ${PROJECT_SOURCE_DIR}/src/SMDS
33   ${TBB_INCLUDES}
34 )
35
36 # additional preprocessor / compiler flags
37 ADD_DEFINITIONS(
38   ${OpenCASCADE_DEFINITIONS}
39   ${BOOST_DEFINITIONS}
40 )
41
42 IF(SALOME_SMESH_USE_TBB)
43   SET(TBB_LIBS ${TBB_LIBRARIES})
44 ENDIF(SALOME_SMESH_USE_TBB)
45
46 # libraries to link to
47 SET(_link_LIBRARIES
48   ${OpenCASCADE_KERNEL}
49   ${OpenCASCADE_ModelingData_LIBRARIES}
50   ${KERNEL_SALOMELocalTrace}
51   SMDS
52   ${TBB_LIBS}
53 )
54
55 # --- headers ---
56
57 # header files / no moc processing
58 SET(SMESHDS_HEADERS
59   SMESHDS_Document.hxx
60   SMESHDS_Hypothesis.hxx
61   SMESHDS_Mesh.hxx
62   SMESHDS_Script.hxx
63   SMESHDS_Command.hxx
64   SMESHDS_CommandType.hxx
65   SMESHDS_SubMesh.hxx
66   SMESHDS_GroupBase.hxx
67   SMESHDS_Group.hxx
68   SMESHDS_GroupOnGeom.hxx
69   SMESHDS_GroupOnFilter.hxx
70   SMESH_SMESHDS.hxx
71   SMESHDS_DataMapOfShape.hxx
72   SMESH_Controls.hxx
73 )
74
75 # --- sources ---
76
77 # sources / static
78 SET(SMESHDS_SOURCES
79   SMESHDS_Document.cxx
80   SMESHDS_Hypothesis.cxx
81   SMESHDS_Script.cxx
82   SMESHDS_Command.cxx
83   SMESHDS_SubMesh.cxx
84   SMESHDS_Mesh.cxx
85   SMESHDS_GroupBase.cxx
86   SMESHDS_Group.cxx
87   SMESHDS_GroupOnGeom.cxx
88   SMESHDS_GroupOnFilter.cxx
89 )
90
91 # --- rules ---
92
93 ADD_LIBRARY(SMESHDS ${SMESHDS_SOURCES})
94 TARGET_LINK_LIBRARIES(SMESHDS ${_link_LIBRARIES} )
95 INSTALL(TARGETS SMESHDS EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
96
97 INSTALL(FILES ${SMESHDS_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})