1 # Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
3 # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License.
11 # This library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
29 ${PTHREAD_INCLUDE_DIRS}
30 ${KERNEL_ROOT_DIR}/include/salome
31 ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
32 ${CMAKE_CURRENT_SOURCE_DIR}/../ViewerTools
33 ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
34 ${CMAKE_CURRENT_SOURCE_DIR}/../OpenGLUtils
35 ${CMAKE_CURRENT_SOURCE_DIR}/../CASCatch
37 SET(COMMON_FLAGS "${QT_DEFINITIONS} ${CAS_DEFINITIONS} ${OGL_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
50 OCCViewer_AISSelector.h
52 OCCViewer_ViewPort3d.h
54 OCCViewer_ViewSketcher.h
55 OCCViewer_ViewWindow.h
56 OCCViewer_ViewManager.h
57 OCCViewer_CreateRestoreViewDlg.h
58 OCCViewer_SetRotationPointDlg.h
59 OCCViewer_ClippingDlg.h
60 OCCViewer_AxialScaleDlg.h
61 OCCViewer_FontWidget.h
62 OCCViewer_CubeAxesDlg.h
66 QT4_WRAP_CPP(GUI_HEADERS ${GUI_HEADERS})
69 OCCViewer_AISSelector.cxx
70 OCCViewer_ViewManager.cxx
71 OCCViewer_ViewModel.cxx
72 OCCViewer_ViewPort3d.cxx
73 OCCViewer_ViewPort.cxx
74 OCCViewer_ViewSketcher.cxx
75 OCCViewer_ViewWindow.cxx
76 OCCViewer_VService.cxx
77 OCCViewer_CreateRestoreViewDlg.cxx
78 OCCViewer_SetRotationPointDlg.cxx
79 OCCViewer_ClippingDlg.cxx
80 OCCViewer_AxialScaleDlg.cxx
81 OCCViewer_Trihedron.cxx
82 OCCViewer_FontWidget.cxx
83 OCCViewer_CubeAxesDlg.cxx
85 OCCViewer_ViewFrame.cxx
89 resources/OCCViewer_images.ts
90 resources/OCCViewer_msg_en.ts
91 resources/OCCViewer_msg_fr.ts
94 ADD_LIBRARY(OCCViewer SHARED ${OCCViewer_SOURCES} ${GUI_HEADERS})
95 SET_TARGET_PROPERTIES(OCCViewer PROPERTIES COMPILE_FLAGS ${COMMON_FLAGS})
96 TARGET_LINK_LIBRARIES(OCCViewer ${COMMON_LIBS})
97 INSTALL(TARGETS OCCViewer DESTINATION ${GUI_salomelib_LIBS})
99 OCCViewer_AISSelector.h
100 OCCViewer_ViewManager.h
101 OCCViewer_ViewModel.h
102 OCCViewer_ViewPort3d.h
104 OCCViewer_ViewSketcher.h
105 OCCViewer_ViewWindow.h
107 OCCViewer_CreateRestoreViewDlg.h
109 OCCViewer_ClippingDlg.h
110 OCCViewer_AxialScaleDlg.h
111 OCCViewer_SetRotationPointDlg.h
112 OCCViewer_Trihedron.h
113 OCCViewer_FontWidget.h
114 OCCViewer_CubeAxesDlg.h
116 OCCViewer_ViewFrame.h
118 INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
119 QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")
121 FILE(GLOB GUIPNG_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.png")
122 INSTALL(FILES ${GUIPNG_DATA} DESTINATION ${GUI_salomeres_DATA})