1 # Copyright (C) 2012 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
20 INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
26 ${PTHREAD_INCLUDE_DIRS}
28 ${KERNEL_ROOT_DIR}/include/salome
30 ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
31 ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
32 ${CMAKE_CURRENT_SOURCE_DIR}/../ViewerTools
33 ${CMAKE_CURRENT_SOURCE_DIR}/../OBJECT
34 ${CMAKE_CURRENT_SOURCE_DIR}/../Prs
35 ${CMAKE_CURRENT_SOURCE_DIR}/../VTKViewer
36 ${CMAKE_CURRENT_SOURCE_DIR}/../OpenGLUtils
38 SET(COMMON_FLAGS "${QT_DEFINITIONS} ${CAS_DEFINITIONS} ${VTK_DEFINITIONS} ${BOOST_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
56 SET(GUI_HEADERS SVTK_GenericRenderWindowInteractor.h SVTK_RenderWindowInteractor.h SVTK_NonIsometricDlg.h
57 SVTK_UpdateRateDlg.h SVTK_CubeAxesDlg.h SVTK_FontWidget.h SVTK_ViewModelBase.h SVTK_ViewManager.h
58 SVTK_ViewWindow.h SVTK_ViewModel.h SVTK_View.h SVTK_SetRotationPointDlg.h SVTK_ViewParameterDlg.h
59 SVTK_ComboAction.h SVTK_RecorderDlg.h)
60 QT4_WRAP_CPP(GUI_HEADERS ${GUI_HEADERS})
68 SVTK_CubeAxesActor2D.cxx
69 SVTK_NonIsometricDlg.cxx
70 SVTK_UpdateRateDlg.cxx
79 SVTK_InteractorStyle.cxx
80 SVTK_KeyFreeInteractorStyle.cxx
81 SVTK_RenderWindowInteractor.cxx
82 SVTK_GenericRenderWindowInteractor.cxx
85 SVTK_SetRotationPointDlg.cxx
86 SVTK_ViewParameterDlg.cxx
91 SVTK_ImageWriterMgr.cxx
100 resources/SVTK_msg_en.ts
101 resources/SVTK_msg_fr.ts
102 resources/SVTK_images.ts
105 ADD_LIBRARY(SVTK SHARED ${SVTK_SOURCES} ${GUI_HEADERS})
106 SET_TARGET_PROPERTIES(SVTK PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
107 TARGET_LINK_LIBRARIES(SVTK ${COMMON_LIBS})
108 INSTALL(TARGETS SVTK DESTINATION ${GUI_salomelib_LIBS})
110 #ADD_EXECUTABLE(TestSVTK SVTK.cxx)
111 #SET_TARGET_PROPERTIES(TestSVTK PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}" OUTPUT_NAME "SVTK")
112 #TARGET_LINK_LIBRARIES(TestSVTK SVTK ${COMMON_LIBS})
113 #INSTALL(TARGETS TestSVTK DESTINATION ${GUI_salomebin_BINS})
123 SVTK_CubeAxesActor2D.h
130 SVTK_InteractorStyle.h
131 SVTK_KeyFreeInteractorStyle.h
132 SVTK_RenderWindowInteractor.h
133 SVTK_GenericRenderWindowInteractor.h
136 SVTK_SelectionEvent.h
140 SVTK_SetRotationPointDlg.h
141 SVTK_ViewParameterDlg.h
146 SVTK_ImageWriterMgr.h
149 INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
150 QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")
152 FILE(GLOB GUIPNG_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.png")
153 INSTALL(FILES ${GUIPNG_DATA} DESTINATION ${GUI_salomeres_DATA})