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