Salome HOME
Update of CheckDone
[modules/smesh.git] / src / SMESHUtils / CMakeLists.txt
1 # Copyright (C) 2012-2024  CEA, EDF, 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   ${OpenCASCADE_INCLUDE_DIR}
25   ${Boost_INCLUDE_DIRS}
26   ${PROJECT_SOURCE_DIR}/src/SMDS
27 )
28
29 # additional preprocessor / compiler flags
30 ADD_DEFINITIONS(
31   ${OpenCASCADE_DEFINITIONS}
32   ${BOOST_DEFINITIONS}
33 )
34
35 # libraries to link to
36 SET(_link_LIBRARIES
37    ${OpenCASCADE_ModelingAlgorithms_LIBRARIES}
38    ${OpenCASCADE_FoundationClasses_LIBRARIES}
39    ${OpenCASCADE_ModelingData_LIBRARIES}
40    ${Boost_LIBRARIES}
41    SMDS
42 )
43
44 # --- headers ---
45
46 # header files / no moc processing
47 SET(SMESHUtils_HEADERS
48   SMESH_Block.hxx
49   SMESH_TypeDefs.hxx
50   SMESH_Tree.hxx
51   SMESH_Octree.hxx
52   SMESH_Quadtree.hxx
53   SMESH_OctreeNode.hxx
54   SMESH_Comment.hxx
55   SMESH_ComputeError.hxx
56   SMESH_File.hxx
57   SMESH_Utils.hxx
58   SMESH_TryCatch.hxx
59   SMESH_MeshAlgos.hxx
60   SMESH_MAT2d.hxx
61   SMESH_ControlPnt.hxx
62   SMESH_Delaunay.hxx
63   SMESH_Indexer.hxx
64   SMESH_BoostTxtArchive.hxx
65   SMESH_MGLicenseKeyGen.hxx
66   )
67
68 # --- sources ---
69
70 # sources / static
71 SET(SMESHUtils_SOURCES
72   SMESH_Block.cxx
73   SMESH_Quadtree.cxx
74   SMESH_Octree.cxx
75   SMESH_OctreeNode.cxx
76   SMESH_TryCatch.cxx
77   SMESH_File.cxx
78   SMESH_MeshAlgos.cxx
79   SMESH_MAT2d.cxx
80   SMESH_FreeBorders.cxx
81   SMESH_ControlPnt.cxx
82   SMESH_DeMerge.cxx
83   SMESH_Delaunay.cxx
84   SMESH_FillHole.cxx
85   SMESH_Triangulate.cxx
86   SMESH_Offset.cxx
87   SMESH_Slot.cxx
88   SMESH_PolyLine.cxx
89   SMESH_BoostTxtArchive.cxx
90   SMESH_MGLicenseKeyGen.cxx
91   )
92
93 # --- rules ---
94
95 ADD_LIBRARY(SMESHUtils ${SMESHUtils_SOURCES})
96 TARGET_LINK_LIBRARIES(SMESHUtils ${_link_LIBRARIES} )
97 INSTALL(TARGETS SMESHUtils EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
98
99 INSTALL(FILES ${SMESHUtils_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})