Salome HOME
Copyrights update 2015.
[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(${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_TopWireframeShape.hxx
69   GEOM_InteractiveObject.hxx
70   GEOM_AISTrihedron.hxx
71   GEOM_VTKTrihedron.hxx
72   GEOM_VTKPropertyMaterial.hxx
73   GEOM_AISVector.hxx
74   GEOM_OBJECT_defs.hxx
75   GEOM_OCCReader.h
76   GEOM_SmartPtr.h
77   GEOM_PainterPolyDataMapper.h
78   GEOM_DeviceActor.h
79   GEOM_Constants.h
80   GEOM_AISDimension.hxx
81   )
82 # --- sources ---
83
84 SET(OBJECT_SOURCES
85   GEOM_Actor.cxx
86   GEOM_OCCReader.cxx
87   GEOM_AISShape.cxx
88   GEOM_TopWireframeShape.cxx
89   GEOM_InteractiveObject.cxx
90   GEOM_AISTrihedron.cxx
91   GEOM_VTKTrihedron.cxx
92   GEOM_VTKPropertyMaterial.cxx
93   GEOM_AISVector.cxx
94   GEOM_PainterPolyDataMapper.cxx
95   GEOM_DeviceActor.cxx
96   GEOM_Constants.cxx
97   GEOM_AISDimension.cxx
98   )
99
100 # --- rules ---
101
102 ADD_LIBRARY(GEOMObject ${OBJECT_SOURCES})
103 TARGET_LINK_LIBRARIES(GEOMObject ${_link_LIBRARIES})
104 INSTALL(TARGETS GEOMObject EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
105
106 INSTALL(FILES ${OBJECT_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})