Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
Add CMake install component for TrajoptLib (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul authored Feb 16, 2024
1 parent 4866d2d commit 92f4433
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ if(${OPTIMIZER_BACKEND} STREQUAL "casadi")
)
endif()

# Install CasADi libraries since FetchContent setting that up properly
# Install CasADi libraries since FetchContent isn't setting that up properly
install(FILES ${CASADI_INSTALL_LIBS} DESTINATION ${CASADI_INSTALL_DEST})
elseif(${OPTIMIZER_BACKEND} STREQUAL "sleipnir")
message(STATUS "Using Sleipnir optimizer")
Expand Down Expand Up @@ -178,7 +178,7 @@ install(
INCLUDES DESTINATION include
)
export(TARGETS TrajoptLib FILE TrajoptLib.cmake NAMESPACE TrajoptLib::)
install(DIRECTORY include/ DESTINATION "include")
install(DIRECTORY include/ COMPONENT TrajoptLib DESTINATION "include")
install(
EXPORT TrajoptLibTargets
FILE TrajoptLib.cmake
Expand All @@ -200,6 +200,7 @@ configure_package_config_file(
# Install the config file
install(
FILES ${CMAKE_CURRENT_BINARY_DIR}/TrajoptLibConfig.cmake
COMPONENT TrajoptLib
DESTINATION lib/cmake/TrajoptLib
)

Expand Down

0 comments on commit 92f4433

Please sign in to comment.