]> SALOME platform Git repositories - modules/geom.git/blob - src/OBJECT/CMakeLists.txt
Salome HOME
Task: "XAO format: fields on geometry".
[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   ${CMAKE_CURRENT_SOURCE_DIR}
38   )
39
40 # additional preprocessor / compiler flags
41 ADD_DEFINITIONS(
42   ${CAS_DEFINITIONS}
43   ${OMNIORB_DEFINITIONS}
44   ${QT_DEFINITIONS}
45   )
46
47 # libraries to link to
48 SET(_link_LIBRARIES
49   OCC2VTK
50   SalomeIDLGEOM
51   ${CAS_TKBRep}
52   ${KERNEL_SALOMELocalTrace}
53   ${GUI_SalomeObject}
54   ${GUI_SVTK}
55   ${QT_QTCORE_LIBRARY}
56   vtkRenderingMatplotlib
57   vtkInteractionStyle
58   #${VTK_LIBRARIES}
59   )
60
61 # --- headers ---
62
63 SET(OBJECT_HEADERS
64   GEOM_Actor.h
65   GEOM_AISShape.hxx
66   GEOM_AISShape.ixx
67   GEOM_AISShape.jxx
68   Handle_GEOM_AISShape.hxx
69   GEOM_TopWireframeShape.hxx
70   GEOM_TopWireframeShape.ixx
71   GEOM_TopWireframeShape.jxx
72   Handle_GEOM_TopWireframeShape.hxx
73   GEOM_InteractiveObject.hxx
74   GEOM_InteractiveObject.ixx
75   GEOM_InteractiveObject.jxx
76   Handle_GEOM_InteractiveObject.hxx
77   GEOM_AISTrihedron.hxx
78   GEOM_VTKTrihedron.hxx
79   GEOM_VTKPropertyMaterial.hxx
80   GEOM_AISVector.hxx
81   GEOM_OBJECT_defs.hxx
82   GEOM_OCCReader.h
83   GEOM_SmartPtr.h
84   GEOM_PainterPolyDataMapper.h
85   GEOM_DeviceActor.h
86   GEOM_Constants.h
87   )
88 # --- sources ---
89
90 SET(OBJECT_SOURCES
91   GEOM_Actor.cxx
92   GEOM_OCCReader.cxx
93   GEOM_AISShape.cxx
94   GEOM_TopWireframeShape.cxx
95   GEOM_InteractiveObject.cxx
96   GEOM_AISTrihedron.cxx
97   GEOM_VTKTrihedron.cxx
98   GEOM_VTKPropertyMaterial.cxx
99   GEOM_AISVector.cxx
100   GEOM_PainterPolyDataMapper.cxx
101   GEOM_DeviceActor.cxx
102   GEOM_Constants.cxx
103   )
104
105 # --- rules ---
106
107 ADD_LIBRARY(GEOMObject ${OBJECT_SOURCES})
108 TARGET_LINK_LIBRARIES(GEOMObject ${_link_LIBRARIES})
109 INSTALL(TARGETS GEOMObject EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
110
111 INSTALL(FILES ${OBJECT_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})