blob: 512253b29bc9ad1d3943b8c742cc71df84f58523 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
cmake_policy(PUSH)
cmake_policy(SET CMP0012 NEW)
cmake_policy(SET CMP0054 NEW)
cmake_policy(SET CMP0057 NEW)
include("${CMAKE_CURRENT_LIST_DIR}/osg-targets.cmake")
include(CMakeFindDependencyMacro)
if("@OSG_TEXT_USE_FONTCONFIG@")
find_dependency(Fontconfig) # CMake 3.14
endif()
if("plugins" IN_LIST ${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS)
include("${CMAKE_CURRENT_LIST_DIR}/osg-plugins.cmake")
if(TARGET unofficial::osg::osgdb_curl)
find_dependency(CURL)
endif()
if(TARGET unofficial::osg::osgdb_exr)
find_dependency(OpenEXR CONFIG)
endif()
if(TARGET unofficial::osg::osgdb_gdal OR TARGET unofficial::osg::osgdb_ogr)
find_dependency(GDAL)
endif()
endif()
set(${CMAKE_FIND_PACKAGE_NAME}_VERSION "@OSG_VER@")
cmake_policy(POP)
|