Salome HOME
Copyright update 2020
[modules/shaper.git] / src / GeomValidators / CMakeLists.txt
1 # Copyright (C) 2014-2020  CEA/DEN, EDF R&D
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 INCLUDE(Common)
21
22 SET(PROJECT_HEADERS
23     GeomValidators.h
24     GeomValidators_BodyShapes.h
25     GeomValidators_ConstructionComposite.h
26     GeomValidators_DifferentShapes.h
27     GeomValidators_Face.h
28     GeomValidators_FeatureKind.h
29     GeomValidators_Finite.h
30     GeomValidators_Plugin.h
31     GeomValidators_Positive.h
32     GeomValidators_ShapeType.h
33     GeomValidators_Tools.h
34     GeomValidators_ZeroOffset.h
35     GeomValidators_Different.h
36     GeomValidators_MinObjectsSelected.h
37     GeomValidators_ValueOrder.h
38     GeomValidators_Intersected.h
39     GeomValidators_NotSelfIntersected.h
40     GeomValidators_GlobalSelection.h
41 )
42
43 SET(PROJECT_SOURCES
44     GeomValidators_BodyShapes.cpp
45     GeomValidators_ConstructionComposite.cpp
46     GeomValidators_DifferentShapes.cpp
47     GeomValidators_Face.cpp
48     GeomValidators_FeatureKind.cpp
49     GeomValidators_Finite.cpp
50     GeomValidators_Plugin.cpp
51     GeomValidators_Positive.cpp
52     GeomValidators_ShapeType.cpp
53     GeomValidators_Tools.cpp
54     GeomValidators_ZeroOffset.cpp
55     GeomValidators_Different.cpp
56     GeomValidators_MinObjectsSelected.cpp
57     GeomValidators_ValueOrder.cpp
58     GeomValidators_Intersected.cpp
59     GeomValidators_NotSelfIntersected.cpp
60     GeomValidators_GlobalSelection.cpp
61 )
62
63 SET(PROJECT_LIBRARIES
64     ModelAPI
65     Events
66     Config
67     GeomAPI
68 )
69
70 ADD_DEFINITIONS(-DGEOMVALIDATORS_EXPORTS ${OpenCASCADE_DEFINITIONS})
71 ADD_LIBRARY(GeomValidators SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
72 TARGET_LINK_LIBRARIES(GeomValidators ${PROJECT_LIBRARIES})
73
74 INCLUDE_DIRECTORIES(
75   ${OpenCASCADE_INCLUDE_DIR}
76   ${PROJECT_SOURCE_DIR}/src/ModelAPI
77   ${PROJECT_SOURCE_DIR}/src/Config
78   ${PROJECT_SOURCE_DIR}/src/Events
79   ${PROJECT_SOURCE_DIR}/src/GeomAPI
80   ${PROJECT_SOURCE_DIR}/src/GeomDataAPI
81 )
82
83 INSTALL(TARGETS GeomValidators DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})