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