Skip to content

Commit

Permalink
CMakeLists.txt: fixing install location of cmake config files
Browse files Browse the repository at this point in the history
Fixing the install location of cmake config files to a more common
location. See [this hint in the cmake documentation](https://cmake.org/cmake/help/latest/module/CMakePackageConfigHelpers.html#example-generating-package-files)
where the files are installed in this location.

Signed-off-by: Matthias Schoepfer <[email protected]>
  • Loading branch information
DasRoteSkelett authored and Matthias Schoepfer committed Apr 11, 2024
1 parent 129693e commit c3f5094
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions orocos_kdl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ CONFIGURE_FILE(orocos_kdl-config.cmake.in
CONFIGURE_FILE(orocos_kdl-config-version.cmake.in
${PROJECT_BINARY_DIR}/orocos_kdl-config-version.cmake @ONLY)

INSTALL(FILES cmake/FindEigen3.cmake DESTINATION share/orocos_kdl/cmake)
INSTALL(FILES ${PROJECT_BINARY_DIR}/orocos_kdl-config.cmake DESTINATION share/orocos_kdl/cmake)
INSTALL(FILES ${PROJECT_BINARY_DIR}/orocos_kdl-config-version.cmake DESTINATION share/orocos_kdl/cmake)
INSTALL(EXPORT OrocosKDLTargets DESTINATION share/orocos_kdl/cmake)
INSTALL(FILES cmake/FindEigen3.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/orocos_kdl)
INSTALL(FILES ${PROJECT_BINARY_DIR}/orocos_kdl-config.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/orocos_kdl)
INSTALL(FILES ${PROJECT_BINARY_DIR}/orocos_kdl-config-version.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/orocos_kdl)
INSTALL(EXPORT OrocosKDLTargets DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/orocos_kdl)

# Generate pkg-config package configuration
CONFIGURE_FILE(orocos_kdl.pc.in ${CMAKE_CURRENT_BINARY_DIR}/orocos-kdl.pc @ONLY)
Expand Down

0 comments on commit c3f5094

Please sign in to comment.