Skip to content

Commit

Permalink
add find_dependency for OpenGL for CMake targets
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrauch committed Jun 7, 2024
1 parent 3d892ef commit 8b171d8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmake/PangolinConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,11 @@ find_dependency(Eigen3)
if (UNIX)
find_dependency(Threads)
endif()

if (NOT EMSCRIPTEN)
find_dependency(OpenGL REQUIRED COMPONENTS OpenGL)
endif()

if(_LINUX_)
find_dependency(OpenGL REQUIRED COMPONENTS EGL)
endif()

0 comments on commit 8b171d8

Please sign in to comment.