Salome HOME
b15cc1b3d7c443b7809a78021bed38e4aa0d25c9
[modules/shaper.git] / src / Selector / CMakeLists.txt
1 # Copyright (C) 2014-2023  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     Selector.h
24     Selector_Selector.h
25     Selector_Algo.h
26     Selector_Primitive.h
27     Selector_AlgoWithSubs.h
28     Selector_Intersect.h
29     Selector_Container.h
30     Selector_Modify.h
31     Selector_FilterByNeighbors.h
32     Selector_WeakName.h
33     Selector_NameGenerator.h
34     Selector_NExplode.h
35 )
36
37 SET(PROJECT_SOURCES
38     Selector_Selector.cpp
39     Selector_Algo.cpp
40     Selector_Primitive.cpp
41     Selector_AlgoWithSubs.cpp
42     Selector_Intersect.cpp
43     Selector_Container.cpp
44     Selector_Modify.cpp
45     Selector_FilterByNeighbors.cpp
46     Selector_WeakName.cpp
47     Selector_NameGenerator.cpp
48     Selector_NExplode.cpp
49 )
50
51 SET(PROJECT_LIBRARIES
52     Locale
53     ${OpenCASCADE_ApplicationFramework_LIBRARIES}
54     GeomAPI
55     GeomAlgoAPI
56 )
57 SET(PROJECT_INCLUDES
58   ../Locale
59   ${OpenCASCADE_INCLUDE_DIR}
60   ../GeomAPI
61   ../GeomAlgoAPI
62 )
63
64
65 ADD_DEFINITIONS(-DSELECTOR_EXPORTS ${OpenCASCADE_DEFINITIONS})
66 ADD_LIBRARY(Selector SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
67 TARGET_LINK_LIBRARIES(Selector ${PROJECT_LIBRARIES})
68
69 INCLUDE_DIRECTORIES(${PROJECT_INCLUDES})
70
71 INSTALL(TARGETS Selector DESTINATION ${SHAPER_INSTALL_BIN})