-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Specify required components in pkg-config
Signed-off-by: Steve Peters <[email protected]>
- Loading branch information
Showing
1 changed file
with
9 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -148,9 +148,8 @@ endif() | |
set(@LEGACY_PROJECT_PREFIX@_LIBRARIES ${@PKG_NAME@_LIBRARIES}) | ||
set(@LEGACY_PROJECT_PREFIX@_INCLUDE_DIRS ${@PKG_NAME@_INCLUDE_DIRS}) | ||
|
||
# This macro is used by gz-cmake to automatically configure the pkgconfig | ||
# files for Gazebo projects. | ||
gz_pkg_config_entry(@PKG_NAME@ "@PKG_NAME@") | ||
# required pkg-config components | ||
set(@PKG_NAME@_required_components) | ||
|
||
# Find each of the components requested by find_package(~) | ||
foreach(component ${@PKG_NAME@_FIND_COMPONENTS}) | ||
|
@@ -166,6 +165,8 @@ foreach(component ${@PKG_NAME@_FIND_COMPONENTS}) | |
# find_dependency(~) | ||
find_dependency(@PKG_NAME@-${component} @PROJECT_VERSION_FULL_NO_SUFFIX@ EXACT) | ||
|
||
set(@PKG_NAME@_required_components "${@PKG_NAME@_required_components} @PKG_NAME@-${component}") | ||
|
||
else() | ||
|
||
# If this is an optional component, use find_package(~) instead of | ||
|
@@ -177,6 +178,11 @@ foreach(component ${@PKG_NAME@_FIND_COMPONENTS}) | |
|
||
endforeach() | ||
|
||
# This macro is used by gz-cmake to automatically configure the pkgconfig | ||
# files for Gazebo projects. | ||
gz_pkg_config_entry(@PKG_NAME@ "@PKG_NAME@ ${@PKG_NAME@_required_components}") | ||
unset(@PKG_NAME@_required_components) | ||
|
||
# Specify the doxygen tag file | ||
set(@PROJECT_NAME_NO_VERSION_UPPER@_DOXYGEN_TAGFILE "${PACKAGE_PREFIX_DIR}/@GZ_DATA_INSTALL_DIR@/@[email protected]") | ||
|
||
|