-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added missing conan-official-osg-variables.cmake to openscenegraph-mr…
… 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.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
Conan/Recipes/openscenegraph-mr/all/conan-official-osg-variables.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |