Salome HOME
Merge branch V7_3_1_BR
[modules/smesh.git] / src / SMESHUtils / CMakeLists.txt
1 # Copyright (C) 2012-2014  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   ${PROJECT_SOURCE_DIR}/src/SMESHDS
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_TKShHealing}
40   ${CAS_TKPrim}
41   ${CAS_TKG2d}
42   ${CAS_TKG3d}
43   ${CAS_TKGeomBase}
44   ${CAS_TKGeomAlgo}
45   ${Boost_LIBRARIES}
46   SMESHDS
47 )
48
49 # --- headers ---
50
51 # header files / no moc processing
52 SET(SMESHUtils_HEADERS
53   SMESH_Block.hxx
54   SMESH_TypeDefs.hxx
55   SMESH_Tree.hxx
56   SMESH_Octree.hxx
57   SMESH_Quadtree.hxx
58   SMESH_OctreeNode.hxx
59   SMESH_Comment.hxx
60   SMESH_ComputeError.hxx
61   SMESH_File.hxx
62   SMESH_Utils.hxx
63   SMESH_TryCatch.hxx
64   SMESH_MeshAlgos.hxx
65 )
66
67 # --- sources ---
68
69 # sources / static
70 SET(SMESHUtils_SOURCES
71   SMESH_Block.cxx
72   SMESH_Quadtree.cxx
73   SMESH_Octree.cxx
74   SMESH_OctreeNode.cxx
75   SMESH_TryCatch.cxx
76   SMESH_File.cxx
77   SMESH_MeshAlgos.cxx
78 )
79
80 # --- rules ---
81
82 ADD_LIBRARY(SMESHUtils ${SMESHUtils_SOURCES})
83 TARGET_LINK_LIBRARIES(SMESHUtils ${_link_LIBRARIES} )
84 INSTALL(TARGETS SMESHUtils EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
85
86 INSTALL(FILES ${SMESHUtils_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})