Salome HOME
0023124: EDF 11219 GEOM: Ray tracing in the OCC viewer
[modules/gui.git] / src / OCCViewer / CMakeLists.txt
index a7cc4289c97b762e21f19a14615f9c0e5d21ab25..8c4159c850274bf3be17f139f13de2d3b5fbb073 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2015  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 # Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -32,10 +32,11 @@ INCLUDE_DIRECTORIES(
   ${PTHREAD_INCLUDE_DIR}
   ${PROJECT_SOURCE_DIR}/src/CASCatch
   ${PROJECT_SOURCE_DIR}/src/Qtx
-  ${PROJECT_SOURCE_DIR}/src/OpenGLUtils
   ${PROJECT_SOURCE_DIR}/src/SUIT
   ${PROJECT_SOURCE_DIR}/src/ViewerData
   ${PROJECT_SOURCE_DIR}/src/ViewerTools
+  ${PROJECT_SOURCE_DIR}/src/OpenGLUtils
+  ${PROJECT_SOURCE_DIR}/src/CAF
 )
 
 # additional preprocessor / compiler flags
@@ -44,8 +45,8 @@ ADD_DEFINITIONS(${QT_DEFINITIONS} ${CAS_DEFINITIONS} ${OGL_DEFINITIONS})
 # libraries to link to
 SET(_link_LIBRARIES
   ${OPENGL_LIBRARIES} ${QT_LIBRARIES} ${CAS_KERNEL} ${CAS_VIEWER} ${CAS_TKGeomAlgo}
-  ${CAS_TKTopAlgo} ${CAS_TKG2d}
-  CASCatch qtx suit OpenGLUtils ViewerTools ViewerData
+  ${CAS_TKTopAlgo} ${CAS_TKG2d} ${CAS_TKOpenGl}
+  CASCatch qtx suit ViewerTools ViewerData OpenGLUtils caf
 )
 
 # --- headers ---
@@ -55,6 +56,9 @@ SET(_moc_HEADERS
   OCCViewer_AISSelector.h
   OCCViewer_AxialScaleDlg.h
   OCCViewer_ClippingDlg.h
+  OCCViewer_RayTracingDlg.h
+  OCCViewer_EnvTextureDlg.h
+  OCCViewer_LightSourceDlg.h
   OCCViewer_CreateRestoreViewDlg.h
   OCCViewer_CubeAxesDlg.h
   OCCViewer_FontWidget.h
@@ -76,8 +80,8 @@ SET(_other_HEADERS
   OCCViewer.h
   OCCViewer_ClipPlane.h
   OCCViewer_Trihedron.h 
-  OCCViewer_Utilities.h
   OCCViewer_VService.h
+  OCCViewer_Utilities.h
 )
 
 # header files / no moc processing / internal
@@ -91,6 +95,9 @@ SET(OCCViewer_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
 
 # --- resources ---
 
+# resource files / to be processed by rcc
+SET(_rcc_RESOURCES OCCViewer.qrc)
+
 # resource files / to be processed by lrelease
 SET(_ts_RESOURCES
   resources/OCCViewer_images.ts
@@ -112,13 +119,16 @@ SET(_other_RESOURCES
   resources/occ_view_clone.png
   resources/occ_view_fitall.png
   resources/occ_view_fitarea.png
+  resources/occ_view_fitselection.png
   resources/occ_view_front.png
   resources/occ_view_glpan.png
   resources/occ_view_graduated_axes.png
   resources/occ_view_left.png
   resources/occ_view_maximized.png
   resources/occ_view_minimized.png
+  resources/occ_view_orthographic.png
   resources/occ_view_pan.png
+  resources/occ_view_perspective.png
   resources/occ_view_preselection.png
   resources/occ_view_presets.png
   resources/occ_view_reset.png
@@ -129,11 +139,15 @@ SET(_other_RESOURCES
   resources/occ_view_scaling.png
   resources/occ_view_selection.png
   resources/occ_view_shoot.png
+  resources/occ_view_stereo.png
   resources/occ_view_style_switch.png
   resources/occ_view_top.png
   resources/occ_view_triedre.png
   resources/occ_view_zoom.png
   resources/occ_view_zooming_style_switch.png
+  resources/occ_view_ray_tracing.png
+  resources/occ_view_env_texture.png
+  resources/occ_view_light_source.png
 )
 
 # --- sources ---
@@ -141,11 +155,17 @@ SET(_other_RESOURCES
 # sources / moc wrappings
 QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
 
+# sources / rcc wrappings
+QT4_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
+
 # sources / static
 SET(_other_SOURCES
   OCCViewer_AISSelector.cxx
   OCCViewer_AxialScaleDlg.cxx
   OCCViewer_ClippingDlg.cxx
+  OCCViewer_RayTracingDlg.cxx
+  OCCViewer_EnvTextureDlg.cxx
+  OCCViewer_LightSourceDlg.cxx
   OCCViewer_ClipPlane.cxx
   OCCViewer_CreateRestoreViewDlg.cxx
   OCCViewer_CubeAxesDlg.cxx
@@ -153,7 +173,6 @@ SET(_other_SOURCES
   OCCViewer_SetRotationPointDlg.cxx
   OCCViewer_ToolTip.cxx
   OCCViewer_Trihedron.cxx
-  OCCViewer_Utilities.cxx
   OCCViewer_VService.cxx
   OCCViewer_ViewFrame.cxx
   OCCViewer_ViewManager.cxx
@@ -164,10 +183,11 @@ SET(_other_SOURCES
   OCCViewer_ViewWindow.cxx
   OCCViewer_ViewportInputFilter.cxx
   OCCViewer_ClipPlaneInteractor.cxx
+  OCCViewer_Utilities.cxx
 )
 
 # sources / to compile
-SET(OCCViewer_SOURCES ${_other_SOURCES} ${_moc_SOURCES})
+SET(OCCViewer_SOURCES ${_other_SOURCES} ${_moc_SOURCES} ${_rcc_SOURCES})
 
 # --- rules ---