Skip to content

Commit

Permalink
Added missing conan-official-osg-variables.cmake to openscenegraph-mr…
Browse files Browse the repository at this point in the history
… package
  • Loading branch information
Matthew Reid committed Nov 6, 2024
1 parent 680c104 commit e39699b
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Reproduce https://github.com/openscenegraph/OpenSceneGraph/blob/master/packaging/cmake/OpenSceneGraphConfig.cmake.in
# Component-specific variables are not created. Use the component targets instead.

# Only export these for the OpenSceneGraph config file, not FindOSG.cmake
if(NOT DEFINED OSG_LIBRARIES)
set(OPENSCENEGRAPH_FOUND TRUE)
set(OPENSCENEGRAPH_LIBRARIES ${OpenSceneGraph_LIBRARIES})
set(OPENSCENEGRAPH_INCLUDE_DIR ${OpenSceneGraph_INCLUDE_DIRS})
set(OPENSCENEGRAPH_INCLUDE_DIRS ${OpenSceneGraph_INCLUDE_DIRS})

set(OPENSCENEGRAPH_VERSION ${OpenSceneGraph_VERSION})
set(OPENSCENEGRAPH_VERSION_STRING ${OpenSceneGraph_VERSION_STRING})

set(OSG_LIBRARY ${OpenSceneGraph_LIBRARIES})
set(OSG_LIBRARIES ${OpenSceneGraph_LIBRARIES})
set(OSG_INCLUDE_DIR ${OpenSceneGraph_INCLUDE_DIRS})
set(OSG_INCLUDE_DIRS ${OpenSceneGraph_INCLUDE_DIRS})
endif()

# Reproduce https://github.com/openscenegraph/OpenSceneGraph/blob/master/CMakeModules/FindOpenThreads.cmake
set(OPENTHREADS_FOUND TRUE)
set(OPENTHREADS_INCLUDE_DIR ${OpenSceneGraph_INCLUDE_DIRS})
set(OPENTHREADS_LIBRARY OpenThreads::OpenThreads)

0 comments on commit e39699b

Please sign in to comment.