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