-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add export_component_deps_pkgconfig example
Find use_component_deps_c with pkg-config and ensure that it properly links to the component_deps components. (not yet working) Signed-off-by: Steve Peters <scpeters@openrobotics.org>
- Loading branch information
Showing
4 changed files
with
39 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR) | ||
project(gz-export_component_deps_pkgconfig VERSION 0.1.0) | ||
find_package(gz-cmake4 REQUIRED) | ||
gz_configure_project() | ||
include(GzPkgConfig) | ||
gz_pkg_check_modules(gz-use_component_deps_c "gz-use_component_deps_c") | ||
gz_configure_build(QUIT_IF_BUILD_ERRORS) | ||
gz_create_packages() | ||
gz_create_docs() |
18 changes: 18 additions & 0 deletions
18
examples/export_component_deps_pkgconfig/src/AlmostEmpty.cc
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* Copyright (C) 2018 Open Source Robotics Foundation | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
|
||
#include <gz/use_component_deps_c/AlmostEmpty.hh> |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
gz_get_libsources_and_unittests(sources gtest_sources) | ||
gz_create_core_library(SOURCES ${sources} CXX_STANDARD 11) | ||
target_link_libraries(${PROJECT_LIBRARY_TARGET_NAME} | ||
PUBLIC | ||
gz-use_component_deps_c::gz-use_component_deps_c) | ||
gz_build_tests(TYPE UNIT SOURCES ${gtest_sources}) |