From 041e4591973077f8ef8bd070b385d5c366e5634b Mon Sep 17 00:00:00 2001 From: Levi Armstrong Date: Wed, 25 Sep 2024 11:26:37 -0500 Subject: [PATCH] Add missing package libraries cmake variable --- trajopt/cmake/trajopt-config.cmake.in | 1 + trajopt_common/cmake/trajopt_common-config.cmake.in | 1 + trajopt_ifopt/cmake/trajopt_ifopt-config.cmake.in | 1 + trajopt_optimizers/trajopt_sqp/cmake/trajopt_sqp-config.cmake.in | 1 + trajopt_sco/cmake/trajopt_sco-config.cmake.in | 1 + 5 files changed, 5 insertions(+) diff --git a/trajopt/cmake/trajopt-config.cmake.in b/trajopt/cmake/trajopt-config.cmake.in index ee3f51fc..46e9762a 100644 --- a/trajopt/cmake/trajopt-config.cmake.in +++ b/trajopt/cmake/trajopt-config.cmake.in @@ -3,6 +3,7 @@ set(@PROJECT_NAME@_FOUND ON) set_and_check(@PROJECT_NAME@_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/include") set_and_check(@PROJECT_NAME@_LIBRARY_DIRS "${PACKAGE_PREFIX_DIR}/lib") +set(@PROJECT_NAME@_LIBRARIES trajopt::@PROJECT_NAME@) include(CMakeFindDependencyMacro) find_dependency(Eigen3) diff --git a/trajopt_common/cmake/trajopt_common-config.cmake.in b/trajopt_common/cmake/trajopt_common-config.cmake.in index 8c53f908..5c295bb0 100644 --- a/trajopt_common/cmake/trajopt_common-config.cmake.in +++ b/trajopt_common/cmake/trajopt_common-config.cmake.in @@ -3,6 +3,7 @@ set(@PROJECT_NAME@_FOUND ON) set_and_check(@PROJECT_NAME@_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/include") set_and_check(@PROJECT_NAME@_LIBRARY_DIRS "${PACKAGE_PREFIX_DIR}/lib") +set(@PROJECT_NAME@_LIBRARIES trajopt::@PROJECT_NAME@) include(CMakeFindDependencyMacro) find_dependency(Eigen3) diff --git a/trajopt_ifopt/cmake/trajopt_ifopt-config.cmake.in b/trajopt_ifopt/cmake/trajopt_ifopt-config.cmake.in index 4f7d1800..adb7927d 100644 --- a/trajopt_ifopt/cmake/trajopt_ifopt-config.cmake.in +++ b/trajopt_ifopt/cmake/trajopt_ifopt-config.cmake.in @@ -3,6 +3,7 @@ set(@PROJECT_NAME@_FOUND ON) set_and_check(@PROJECT_NAME@_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/include") set_and_check(@PROJECT_NAME@_LIBRARY_DIRS "${PACKAGE_PREFIX_DIR}/lib") +set(@PROJECT_NAME@_LIBRARIES trajopt::@PROJECT_NAME@) include(CMakeFindDependencyMacro) diff --git a/trajopt_optimizers/trajopt_sqp/cmake/trajopt_sqp-config.cmake.in b/trajopt_optimizers/trajopt_sqp/cmake/trajopt_sqp-config.cmake.in index 456d4918..e9ee3855 100644 --- a/trajopt_optimizers/trajopt_sqp/cmake/trajopt_sqp-config.cmake.in +++ b/trajopt_optimizers/trajopt_sqp/cmake/trajopt_sqp-config.cmake.in @@ -3,6 +3,7 @@ set(@PROJECT_NAME@_FOUND ON) set_and_check(@PROJECT_NAME@_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/include") set_and_check(@PROJECT_NAME@_LIBRARY_DIRS "${PACKAGE_PREFIX_DIR}/lib") +set(@PROJECT_NAME@_LIBRARIES trajopt::@PROJECT_NAME@ trajopt::@PROJECT_NAME@_callbacks) include(CMakeFindDependencyMacro) find_dependency(console_bridge) diff --git a/trajopt_sco/cmake/trajopt_sco-config.cmake.in b/trajopt_sco/cmake/trajopt_sco-config.cmake.in index 5c809ec7..3369efe8 100644 --- a/trajopt_sco/cmake/trajopt_sco-config.cmake.in +++ b/trajopt_sco/cmake/trajopt_sco-config.cmake.in @@ -3,6 +3,7 @@ set(@PROJECT_NAME@_FOUND ON) set_and_check(@PROJECT_NAME@_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/include") set_and_check(@PROJECT_NAME@_LIBRARY_DIRS "${PACKAGE_PREFIX_DIR}/lib") +set(@PROJECT_NAME@_LIBRARIES trajopt::@PROJECT_NAME@) list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")