1 # Copyright (C) 2012-2016 CEA/DEN, EDF R&D, OPEN CASCADE
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.
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.
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
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
25 ${OpenCASCADE_INCLUDE_DIR}
27 ${PROJECT_SOURCE_DIR}/src/Qtx
28 ${PROJECT_SOURCE_DIR}/src/SUIT
31 # additional preprocessor / compiler flags
32 ADD_DEFINITIONS(${OpenCASCADE_DEFINITIONS} ${QT_DEFINITIONS})
34 # libraries to link to
35 SET(_link_LIBRARIES ${QT_LIBRARIES} ${OpenCASCADE_FoundationClasses_LIBRARIES} ${OPENGL_LIBRARIES} qtx suit)
36 IF(NOT (WIN32 OR APPLE))
37 LIST(APPEND _link_LIBRARIES Xmu)
42 # header files / to be processed by moc
48 GLViewer_ViewManager.h
56 # header files / no moc processing
60 GLViewer_BaseDrawers.h
61 GLViewer_BaseObjects.h
64 GLViewer_CoordSystem.h
76 # header files / to install
77 SET(GLViewer_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
81 # resource files / to be processed by lrelease
83 resources/GLViewer_images.ts
84 resources/GLViewer_msg_en.ts
85 resources/GLViewer_msg_fr.ts
86 resources/GLViewer_msg_ja.ts
89 # resource files / static
91 resources/gl_cursor_rotate.png
92 resources/gl_cursor_sketch.png
93 resources/gl_cursor_zoom.png
94 resources/gl_view_dump.png
95 resources/gl_view_fitall.png
96 resources/gl_view_fitarea.png
97 resources/gl_view_fitselect.png
98 resources/gl_view_glpan.png
99 resources/gl_view_pan.png
100 resources/gl_view_reset.png
101 resources/gl_view_zoom.png
106 # sources / moc wrappings
107 QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
111 GLViewer_AspectLine.cxx
112 GLViewer_BaseDrawers.cxx
113 GLViewer_BaseObjects.cxx
116 GLViewer_CoordSystem.cxx
121 GLViewer_MimeData.cxx
123 GLViewer_Selector.cxx
124 GLViewer_Selector2d.cxx
128 GLViewer_ViewFrame.cxx
129 GLViewer_ViewManager.cxx
130 GLViewer_ViewPort.cxx
131 GLViewer_ViewPort2d.cxx
133 GLViewer_Viewer2d.cxx
137 # sources / to compile
138 SET(GLViewer_SOURCES ${_other_SOURCES} ${_moc_SOURCES})
142 ADD_LIBRARY(GLViewer ${GLViewer_SOURCES})
143 TARGET_LINK_LIBRARIES(GLViewer ${_link_LIBRARIES})
144 INSTALL(TARGETS GLViewer EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
146 INSTALL(FILES ${GLViewer_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
148 QT_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")
149 INSTALL(FILES ${_other_RESOURCES} DESTINATION ${SALOME_GUI_INSTALL_RES_DATA})