24 lines
759 B
CMake
24 lines
759 B
CMake
|
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("ON")
|
||
|
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 "3.6.5")
|
||
|
cmake_policy(POP)
|