Salome HOME
Merge branch 'V9_9_BR'
[modules/smesh.git] / src / SMESHFiltersSelection / CMakeLists.txt
1 # Copyright (C) 2012-2022  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   ${OpenCASCADE_INCLUDE_DIR}
24   ${QT_INCLUDES}
25   ${PYTHON_INCLUDE_DIRS}
26   ${KERNEL_INCLUDE_DIRS}
27   ${GUI_INCLUDE_DIRS}
28   ${GEOM_INCLUDE_DIRS}
29   ${MEDFILE_INCLUDE_DIRS}
30   ${Boost_INCLUDE_DIRS}
31   ${OMNIORB_INCLUDE_DIR}
32   ${PROJECT_BINARY_DIR}/idl
33 )
34
35 # additional preprocessor / compiler flags
36 ADD_DEFINITIONS(
37   ${OMNIORB_DEFINITIONS}
38   ${PYTHON_DEFINITIONS}
39   ${OpenCASCADE_DEFINITIONS}
40 )
41
42 # libraries to link to
43 SET(_link_LIBRARIES
44   ${KERNEL_SalomeDSClient}
45   ${KERNEL_SalomeDS}
46   ${GUI_SalomeApp}
47   ${GUI_suit}
48   ${GEOM_GEOMClient}
49   ${OpenCASCADE_FoundationClasses_LIBRARIES}
50   ${OpenCASCADE_ModelingData_LIBRARIES}
51   SalomeIDLSMESH
52 )
53
54 # --- headers ---
55
56 # header files / no moc processing
57 SET(SMESHFiltersSelection_HEADERS
58   SMESH_Type.h
59   SMESH_TypeFilter.hxx
60   SMESH_NumberFilter.hxx
61   SMESH_LogicalFilter.hxx
62 )
63
64 # --- sources ---
65
66 # sources / static
67 SET(SMESHFiltersSelection_SOURCES
68   SMESH_TypeFilter.cxx
69   SMESH_NumberFilter.cxx
70   SMESH_LogicalFilter.cxx
71 )
72
73 # --- rules ---
74
75 ADD_LIBRARY(SMESHFiltersSelection ${SMESHFiltersSelection_SOURCES})
76 TARGET_LINK_LIBRARIES(SMESHFiltersSelection ${_link_LIBRARIES} )
77 INSTALL(TARGETS SMESHFiltersSelection EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
78
79 INSTALL(FILES ${SMESHFiltersSelection_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})