Salome HOME
513816b8b617be1088c114c16109645450c4956b
[modules/geom.git] / src / GEOMFiltersSelection / CMakeLists.txt
1 # Copyright (C) 2012-2023  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
22 # additional include directories
23 INCLUDE_DIRECTORIES(
24   ${OMNIORB_INCLUDE_DIR}
25   ${PTHREAD_INCLUDE_DIR}
26   ${OpenCASCADE_INCLUDE_DIR}
27   ${KERNEL_INCLUDE_DIRS}
28   ${GUI_INCLUDE_DIRS}
29   ${PROJECT_BINARY_DIR}/idl
30   ${PROJECT_BINARY_DIR}
31   ${PROJECT_SOURCE_DIR}/src/GEOMClient
32   ${CMAKE_CURRENT_SOURCE_DIR}
33   )
34
35 # additional preprocessor / compiler flags
36 ADD_DEFINITIONS(
37   ${OpenCASCADE_DEFINITIONS}
38   ${OMNIORB_DEFINITIONS}
39   ${QT_DEFINITIONS}
40   )
41
42 # libraries to link to
43 SET(_link_LIBRARIES
44   SalomeIDLGEOM
45   GEOMClient
46   ${OpenCASCADE_ModelingData_LIBRARIES}
47   ${KERNEL_SALOMELocalTrace}
48   ${GUI_SalomeApp}
49   )
50
51 # --- headers ---
52
53 SET(GEOMFiltersSelection_HEADERS
54   GEOM_SelectionFilter.h
55   GEOM_EdgeFilter.h
56   GEOM_FaceFilter.h
57   GEOM_TypeFilter.h
58   GEOM_PreviewFilter.h
59   GEOM_LogicalFilter.h
60   GEOM_OCCFilter.h
61   GEOM_CompoundFilter.h
62   )
63 # --- sources ---
64
65 SET(GEOMFiltersSelection_SOURCES
66   GEOM_SelectionFilter.cxx
67   GEOM_EdgeFilter.cxx
68   GEOM_FaceFilter.cxx
69   GEOM_TypeFilter.cxx
70   GEOM_PreviewFilter.cxx
71   GEOM_LogicalFilter.cxx
72   GEOM_OCCFilter.cxx
73   GEOM_CompoundFilter.cxx
74   )
75
76 # --- rules ---
77
78 ADD_LIBRARY(GEOMFiltersSelection ${GEOMFiltersSelection_SOURCES})
79 TARGET_LINK_LIBRARIES(GEOMFiltersSelection ${_link_LIBRARIES})
80 INSTALL(TARGETS GEOMFiltersSelection EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
81
82 INSTALL(FILES ${GEOMFiltersSelection_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})