Skip to content

Commit

Permalink
Update the ExternalProject
Browse files Browse the repository at this point in the history
  • Loading branch information
gwaldron committed Aug 29, 2024
1 parent 90bf0f0 commit 55638c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion share/ExternalProject/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ find_package(osgEarth CONFIG REQUIRED)

add_executable(ExternalExample main.cpp)

target_link_libraries(ExternalExample PRIVATE osgEarth)
target_link_libraries(ExternalExample PRIVATE osgEarth::osgEarth)
6 changes: 3 additions & 3 deletions share/ExternalProject/README.md
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`.

0 comments on commit 55638c4

Please sign in to comment.