Skip to content

Commit

Permalink
Merge pull request #2 from gazebosim/iche033/frustum_visual
Browse files Browse the repository at this point in the history
Update FrustumVisual class function and variable naming, add demo
  • Loading branch information
BA-Utkarsh authored Jan 16, 2025
2 parents 7f77af8 + 08ebe92 commit 19aa075
Show file tree
Hide file tree
Showing 10 changed files with 675 additions and 65 deletions.
28 changes: 28 additions & 0 deletions examples/frustum_visual/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)
project(gz-rendering-frustum-visual)
find_package(gz-rendering10 REQUIRED)

find_package(GLUT REQUIRED)
include_directories(SYSTEM ${GLUT_INCLUDE_DIRS})
link_directories(${GLUT_LIBRARY_DIRS})

find_package(OpenGL REQUIRED)
include_directories(SYSTEM ${OpenGL_INCLUDE_DIRS})
link_directories(${OpenGL_LIBRARY_DIRS})

if (NOT APPLE)
find_package(GLEW REQUIRED)
include_directories(SYSTEM ${GLEW_INCLUDE_DIRS})
link_directories(${GLEW_LIBRARY_DIRS})
endif()

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations")

add_executable(frustum_visual Main.cc GlutWindow.cc)

target_link_libraries(frustum_visual
${GLUT_LIBRARIES}
${OPENGL_LIBRARIES}
${GLEW_LIBRARIES}
${GZ-RENDERING_LIBRARIES}
)
Loading

0 comments on commit 19aa075

Please sign in to comment.