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