1 # Copyright (C) 2012-2013 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.
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
24 ${PTHREAD_INCLUDE_DIRS}
26 ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
27 ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
37 SET(GUI_HEADERS GLViewer_Selector.h GLViewer_Selector2d.h GLViewer_ToolTip.h GLViewer_ViewFrame.h GLViewer_ViewManager.h GLViewer_ViewPort.h GLViewer_ViewPort2d.h GLViewer_Viewer.h GLViewer_Viewer2d.h GLViewer_Widget.h)
38 QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
41 GLViewer_AspectLine.cxx
42 GLViewer_BaseDrawers.cxx
43 GLViewer_BaseObjects.cxx
46 GLViewer_CoordSystem.cxx
54 GLViewer_Selector2d.cxx
58 GLViewer_ViewFrame.cxx
59 GLViewer_ViewManager.cxx
61 GLViewer_ViewPort2d.cxx
68 resources/GLViewer_images.ts
69 resources/GLViewer_msg_en.ts
70 resources/GLViewer_msg_fr.ts
71 resources/GLViewer_msg_ja.ts
74 ADD_DEFINITIONS(${CAS_DEFINITIONS})
76 ADD_LIBRARY(GLViewer ${GLViewer_SOURCES} ${GUI_HEADERS_MOC})
77 TARGET_LINK_LIBRARIES(GLViewer ${COMMON_LIBS})
78 INSTALL(TARGETS GLViewer EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
80 FILE(GLOB COMMON_HEADERS_H "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
81 INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${SALOME_INSTALL_HEADERS})
82 QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")
84 FILE(GLOB GUIPNG_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.png")
85 INSTALL(FILES ${GUIPNG_DATA} DESTINATION ${SALOME_GUI_INSTALL_RES_DATA})