Salome HOME
0022354: EDF GEOM: Create edge by getting iso-line of surface
[modules/geom.git] / src / OBJECT / CMakeLists.txt
1 # Copyright (C) 2012-2013  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.
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 INCLUDE(${QT_USE_FILE})
21 INCLUDE(${VTK_USE_FILE})
22
23 # --- options ---
24
25 # additional include directories
26 INCLUDE_DIRECTORIES(
27   ${VTK_INCLUDE_DIRS}
28   ${PTHREAD_INCLUDE_DIR}
29   ${QT_INCLUDE_DIRS}
30   ${OMNIORB_INCLUDE_DIR}
31   ${CAS_INCLUDE_DIRS}
32   ${KERNEL_INCLUDE_DIRS}
33   ${GUI_INCLUDE_DIRS}
34   ${PROJECT_BINARY_DIR}/idl
35   ${PROJECT_BINARY_DIR}
36   ${PROJECT_SOURCE_DIR}/src/OCC2VTK
37   ${PROJECT_SOURCE_DIR}/src/GEOMUtils
38   ${CMAKE_CURRENT_SOURCE_DIR}
39   )
40
41 # additional preprocessor / compiler flags
42 ADD_DEFINITIONS(
43   ${CAS_DEFINITIONS}
44   ${OMNIORB_DEFINITIONS}
45   ${QT_DEFINITIONS}
46   )
47
48 # libraries to link to
49 SET(_link_LIBRARIES
50   OCC2VTK
51   SalomeIDLGEOM
52   ${CAS_TKBRep}
53   ${KERNEL_SALOMELocalTrace}
54   ${GUI_SalomeObject}
55   ${GUI_SVTK}
56   ${QT_QTCORE_LIBRARY}
57   vtkRenderingMatplotlib
58   vtkInteractionStyle
59   GEOMUtils
60   #${VTK_LIBRARIES}
61   )
62
63 # --- headers ---
64
65 SET(OBJECT_HEADERS
66   GEOM_Actor.h
67   GEOM_AISShape.hxx
68   GEOM_AISShape.ixx
69   GEOM_AISShape.jxx
70   Handle_GEOM_AISShape.hxx
71   GEOM_TopWireframeShape.hxx
72   GEOM_TopWireframeShape.ixx
73   GEOM_TopWireframeShape.jxx
74   Handle_GEOM_TopWireframeShape.hxx
75   GEOM_InteractiveObject.hxx
76   GEOM_InteractiveObject.ixx
77   GEOM_InteractiveObject.jxx
78   Handle_GEOM_InteractiveObject.hxx
79   GEOM_AISTrihedron.hxx
80   GEOM_VTKTrihedron.hxx
81   GEOM_VTKPropertyMaterial.hxx
82   GEOM_AISVector.hxx
83   GEOM_OBJECT_defs.hxx
84   GEOM_OCCReader.h
85   GEOM_SmartPtr.h
86   GEOM_PainterPolyDataMapper.h
87   GEOM_DeviceActor.h
88   GEOM_Constants.h
89   )
90 # --- sources ---
91
92 SET(OBJECT_SOURCES
93   GEOM_Actor.cxx
94   GEOM_OCCReader.cxx
95   GEOM_AISShape.cxx
96   GEOM_TopWireframeShape.cxx
97   GEOM_InteractiveObject.cxx
98   GEOM_AISTrihedron.cxx
99   GEOM_VTKTrihedron.cxx
100   GEOM_VTKPropertyMaterial.cxx
101   GEOM_AISVector.cxx
102   GEOM_PainterPolyDataMapper.cxx
103   GEOM_DeviceActor.cxx
104   GEOM_Constants.cxx
105   )
106
107 # --- rules ---
108
109 ADD_LIBRARY(GEOMObject ${OBJECT_SOURCES})
110 TARGET_LINK_LIBRARIES(GEOMObject ${_link_LIBRARIES})
111 INSTALL(TARGETS GEOMObject EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
112
113 INSTALL(FILES ${OBJECT_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})