Salome HOME
Merge branch V7_3_1_BR
[modules/smesh.git] / src / PluginUtils / CMakeLists.txt
1 # Copyright (C) 2012-2014  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   ${QT_INCLUDES}
24   ${CAS_INCLUDE_DIRS}
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_SOURCE_DIR}/src/SMESHGUI
33   ${PROJECT_BINARY_DIR}/idl
34 )
35
36 # additional preprocessor / compiler flags
37 ADD_DEFINITIONS(
38   ${CAS_DEFINITIONS}
39   ${BOOST_DEFINITIONS}
40   ${OMNIORB_DEFINITIONS}
41 )
42
43 # libraries to link to
44 SET(_link_LIBRARIES
45   ${KERNEL_SalomeIDLKernel}
46   ${KERNEL_SALOMELocalTrace}
47   ${KERNEL_SalomeLifeCycleCORBA}
48   ${CAS_TKBRep}
49   ${CAS_TKV3d}
50   ${GUI_SalomeObject}
51   ${GUI_suit}
52   ${GUI_LightApp}
53   ${GUI_SalomeApp}
54   SalomeIDLSMESH
55   SMESH
56 )
57
58 # --- headers ---
59
60 # header files / to be processed by moc
61 SET(GeomSelectionTools_HEADERS
62   GeomSelectionTools.h
63 )
64
65 # --- sources ---
66
67 # sources / static
68 SET(GeomSelectionTools_SOURCES
69   GeomSelectionTools.cxx
70 )
71
72 # --- rules ---
73
74 ADD_LIBRARY(GeomSelectionTools ${GeomSelectionTools_SOURCES})
75 TARGET_LINK_LIBRARIES(GeomSelectionTools ${_link_LIBRARIES} )
76 INSTALL(TARGETS GeomSelectionTools EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
77
78 INSTALL(FILES ${GeomSelectionTools_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})