-
Notifications
You must be signed in to change notification settings - Fork 787
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# External Project Example | ||
This is a simple example to test the `osgEarthConfig.cmake` packaging configuration file for CMake. | ||
This is a simple example to test the `osgEarth-config.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: | ||
These line in your `CMakeLists.txt` will tell CMake to look for `osgEarth-config.cmake` and use it to resolve osgEarth and its public-facing dependencies: | ||
``` | ||
find_package(osgEarth CONFIG REQUIRED) | ||
... | ||
target_link_libraries(my_project PRIVATE osgEarth) | ||
target_link_libraries(my_project PRIVATE osgEarth::osgEarth) | ||
``` | ||
You may need to update your `CMAKE_PREFIX_PATH` to include the location of `osgEarthConfig.cmake`. |