Skip to content

Latest commit

 

History

History
 
 

ExternalProject

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

External Project Example

This is a simple example to test the osgEarthConfig.cmake packaging configuration file for CMake.

These line in your CMakeLists.txt will tell CMake to look for osgEarthConfig.cmake and use it to resolve osgEarth and its public-facing dependencies:

find_package(osgEarth CONFIG REQUIRED)
...
target_link_libraries(my_project PRIVATE osgEarth)

You may need to update your CMAKE_PREFIX_PATH to include the location of osgEarthConfig.cmake.