]> SALOME platform Git repositories - modules/gui.git/blob - src/SVTK/CMakeLists.txt
Salome HOME
de49ce5cd93f5ca170b8d132e2f1026b4b756a76
[modules/gui.git] / src / SVTK / CMakeLists.txt
1 # Copyright (C) 2012  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.
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 INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
21
22 INCLUDE_DIRECTORIES(
23   ${CAS_INCLUDE_DIRS}
24   ${QT_INCLUDE_DIRS}
25   ${VTK_INCLUDE_DIRS}
26   ${PTHREAD_INCLUDE_DIRS}
27   ${BOOST_INCLUDE_DIRS}
28   ${KERNEL_ROOT_DIR}/include/salome
29   ${CMAKE_BINARY_DIR}
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
37 )
38 SET(COMMON_FLAGS "${QT_DEFINITIONS} ${CAS_DEFINITIONS} ${VTK_DEFINITIONS} ${BOOST_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
39 SET(COMMON_LIBS
40   qtx
41   suit
42   ViewerTools
43   SalomeObject
44   SalomePrs
45   VTKViewer
46   OpenGLUtils
47   ${SALOMELocalTrace}
48   ${OpUtil}
49   ${VTK_LIBS}
50   ${OGL_LIBS}
51   ${QT_MT_LIBS}
52   ${CAS_KERNEL}
53   ${CAS_VIEWER}
54 )
55
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})
61
62 SET(SVTK_SOURCES
63   SVTK_Prs.cxx
64   SVTK_Actor.cxx
65   SALOME_Actor.cxx
66   SVTK_RectPicker.cxx
67   SVTK_DeviceActor.cxx
68   SVTK_CubeAxesActor2D.cxx
69   SVTK_NonIsometricDlg.cxx
70   SVTK_UpdateRateDlg.cxx
71   SVTK_CubeAxesDlg.cxx
72   SVTK_FontWidget.cxx
73   SVTK_Trihedron.cxx
74   SVTK_View.cxx
75   SVTK_ViewManager.cxx
76   SVTK_ViewModel.cxx
77   SVTK_Renderer.cxx
78   SVTK_ViewWindow.cxx
79   SVTK_InteractorStyle.cxx
80   SVTK_KeyFreeInteractorStyle.cxx
81   SVTK_RenderWindowInteractor.cxx
82   SVTK_GenericRenderWindowInteractor.cxx
83   SVTK_SpaceMouse.cxx
84   SVTK_Selector.cxx
85   SVTK_SetRotationPointDlg.cxx
86   SVTK_ViewParameterDlg.cxx
87   SVTK_ComboAction.cxx
88   SVTK_Recorder.cxx
89   SVTK_RecorderDlg.cxx
90   SVTK_ImageWriter.cxx
91   SVTK_ImageWriterMgr.cxx
92   SVTK_Utils.cxx
93   vtkPVAxesActor.h
94   vtkPVAxesActor.cxx
95   vtkPVAxesWidget.h
96   vtkPVAxesWidget.cxx
97 )
98
99 SET(GUITS_SOURCES
100   resources/SVTK_msg_en.ts
101   resources/SVTK_msg_fr.ts
102   resources/SVTK_images.ts
103 )
104
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})
109
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})
114
115 SET(COMMON_HEADERS_H 
116   SVTK.h
117   SVTK_Prs.h
118   SVTK_Actor.h
119   SALOME_Actor.h
120   SVTK_RectPicker.h
121   SVTK_DeviceActor.h
122   SVTK_FontWidget.h
123   SVTK_CubeAxesActor2D.h
124   SVTK_Functor.h
125   SVTK_View.h
126   SVTK_ViewManager.h
127   SVTK_ViewModel.h
128   SVTK_ViewWindow.h
129   SVTK_Renderer.h
130   SVTK_InteractorStyle.h
131   SVTK_KeyFreeInteractorStyle.h
132   SVTK_RenderWindowInteractor.h
133   SVTK_GenericRenderWindowInteractor.h
134   SVTK_Selector.h
135   SVTK_Selection.h
136   SVTK_SelectionEvent.h
137   SVTK_SpaceMouse.h
138   SVTK_Event.h
139   SVTK_ViewModelBase.h
140   SVTK_SetRotationPointDlg.h
141   SVTK_ViewParameterDlg.h
142   SVTK_ComboAction.h
143   SVTK_Recorder.h
144   SVTK_RecorderDlg.h
145   SVTK_ImageWriter.h
146   SVTK_ImageWriterMgr.h
147   SVTK_Utils.h
148 )
149 INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
150 QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")
151
152 FILE(GLOB GUIPNG_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.png")
153 INSTALL(FILES ${GUIPNG_DATA} DESTINATION ${GUI_salomeres_DATA})
154